Skip to main content

Module agent

Module agent 

Source
Expand description

Agent — a composed value, not a record.

An Agent is name + system prompt + model + capabilities, built with AgentBuilder entirely from values. There is no id to mint, nothing to register, and no store to create it in. Sessions are spawned from the agent; ids exist only inside them as correlation handles.

Composition lives in one place: the builder produces a valid AgentDefinition and AgentEnvironment, which every TurnHost consumes directly.

Structs§

Agent
A runnable agent, composed by value. Cheap to clone (shared internals).
AgentBuilder
Fluent, by-value agent composition.
AgentDefinition
Agent behavior, separate from the resources that run it.
AgentEnvironment
Host resources used to execute an AgentDefinition.