@usine/core/agent
Classes
Section titled “Classes”One named member of the instance’s team roster.
Extends
Section titled “Extends”Schema.Class
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Agent(…
args):Agent
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[props: object, options?: MakeOptions] |
Returns
Section titled “Returns”Properties
Section titled “Properties”
readonlybrain:BrainSpec
Coding harness and settings used for this Agent’s delegated child sessions.
readonlyname:string&Brand<"AgentName">
parentEffort
Section titled “parentEffort”
readonlyparentEffort:Option<"off"|"minimal"|"low"|"medium"|"high"|"xhigh"|"max">
Parent reasoning effort; an absent override uses the instance default, then the child brain’s effort.
parentModel
Section titled “parentModel”
readonlyparentModel:Option<string&Brand<"ModelId">>
Preferred model for the coordinating Pi parent; an absent override uses the instance default.
persona
Section titled “persona”
readonlypersona:string&Brand<"AgentPersona">
Type Aliases
Section titled “Type Aliases”AgentName
Section titled “AgentName”AgentName = typeof
AgentName.Type
Kebab-case name of a rostered Agent, taken from its filename.
AgentPersona
Section titled “AgentPersona”AgentPersona = typeof
AgentPersona.Type
Standing Markdown instructions for one Agent.
Variables
Section titled “Variables”AgentName
Section titled “AgentName”
constAgentName:Schema.brand<Schema.String,"AgentName">
Kebab-case name of a rostered Agent, taken from its filename.
AgentPersona
Section titled “AgentPersona”
constAgentPersona:Schema.brand<Schema.String,"AgentPersona">
Standing Markdown instructions for one Agent.
resolveParentEffort
Section titled “resolveParentEffort”
constresolveParentEffort: (agent,instanceDefault) =>Effort
The agent’s parent-effort override, else the instance default, else the child brain’s effort.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
agent |
Agent |
instanceDefault |
Option.Option<Effort> |
Returns
Section titled “Returns”resolveParentModel
Section titled “resolveParentModel”
constresolveParentModel: (agent,instanceDefault) =>Option.Option<ModelId>
Selects the Agent’s parent-model override, then the instance default; None leaves selection to Pi.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
agent |
Agent |
instanceDefault |
Option.Option<ModelId> |
Returns
Section titled “Returns”Option.Option<ModelId>