Skip to content

@usine/core/agent

One named member of the instance’s team roster.

  • Schema.Class

new Agent(…args): Agent

Parameter Type
…args [props: object, options?: MakeOptions]

Agent

readonly brain: BrainSpec

Coding harness and settings used for this Agent’s delegated child sessions.

readonly name: string & Brand<"AgentName">

readonly parentEffort: Option<"off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">

Parent reasoning effort; an absent override uses the instance default, then the child brain’s effort.

readonly parentModel: Option<string & Brand<"ModelId">>

Preferred model for the coordinating Pi parent; an absent override uses the instance default.

readonly persona: string & Brand<"AgentPersona">

AgentName = typeof AgentName.Type

Kebab-case name of a rostered Agent, taken from its filename.


AgentPersona = typeof AgentPersona.Type

Standing Markdown instructions for one Agent.

const AgentName: Schema.brand<Schema.String, "AgentName">

Kebab-case name of a rostered Agent, taken from its filename.


const AgentPersona: Schema.brand<Schema.String, "AgentPersona">

Standing Markdown instructions for one Agent.


const resolveParentEffort: (agent, instanceDefault) => Effort

The agent’s parent-effort override, else the instance default, else the child brain’s effort.

Parameter Type
agent Agent
instanceDefault Option.Option<Effort>

Effort


const resolveParentModel: (agent, instanceDefault) => Option.Option<ModelId>

Selects the Agent’s parent-model override, then the instance default; None leaves selection to Pi.

Parameter Type
agent Agent
instanceDefault Option.Option<ModelId>

Option.Option<ModelId>