Agent
The single public agent class backed by Causal Weave v3.
Constructor
Passing
tools: [] disables tools. Omitting tools creates the default workspace tools.
run()
TaskInput is a string or { input, objective? }. A stateful agent serializes concurrent calls. Successful runs update the agent-owned state.
Options:
options.state runs against that explicit snapshot and does not mutate the agent-owned session.
streamEvents()
metadatabefore work begins;- zero or more
progressevents; - one
finalevent after a successful commit.
stream() and streamText()
getState()
undefined before the first successful run unless initial state was supplied.