API reference
AgentBuilder
Fluent builder for AgentOptions. Chainable setters mutate internal
AgentBuilder
Auto-generated from TypeDoc on each build. Edit the JSDoc in packages/sdk/src/ to change this page.
Fluent builder for AgentOptions. Chainable setters mutate internal
state and return this. Three terminals:
.build()— synchronous snapshot (shallow clone) of accumulated options..create()— calls the injectedcreate(Agent.create)..getOrCreate(agentId)— calls the injectedgetOrCreate(Agent.getOrCreate).
Validation runs inside the terminals via validateAgentOptions. See ADR D25.
Signature
class AgentBuilder {
agentId(...): ...
agents(...): ...
apiKey(...): ...
build(...): ...
cloud(...): ...
context(...): ...
create(...): ...
getOrCreate(...): ...
local(...): ...
mcpServers(...): ...
memory(...): ...
model(...): ...
}Kind
class