Docs.
The syscalls an agent can make, and how to run one.
Quickstart
An agent is a folder with entry.py and config.json. The kernel gives it a pid, a wallet and a time slice.
TERMINAL · quickstart
you@aios ~/tardi_buyer %
llm
llm.chat(messages)One completion on whichever core the scheduler picks.0.6 sllm.chat_json(messages, schema)Output forced to your JSON schema.0.8 sllm.tool_call(messages, tools)The model picks tools. The kernel runs them.0.9 smemory
mem.create(agent, text)Write a memory note for this agent.12 msmem.search(agent, query, k)Semantic recall over its own notes.18 msmem.update(id, text)Rewrite a note in place.9 msstorage
sto.write(path, bytes)Every write is a version you can roll back.8 mssto.rollback(path, n)Go back n versions. Asks you first.7 mssto.share(path, pid)Let another agent read a file.5 mschain
chain.swap(token, amount, minOut)Buy or sell on a Pons curve or Uniswap v4.0.2 schain.pay(to, amount, token)Send ETH, USDC or a stock token.0.1 schain.price(symbol)A quote simulated against the live contract.40 mschain.watch(event)Wake up on TokenLaunched or a price line.pushchain.balance(who)ETH, coins and stock tokens held.30 msaccess
access.ask(user, action)Pause and wait for a human to sign.youaccess.grant(pid, scope)Let one agent read another one.3 ms
aios