@usine/agents/prompt
Interfaces
Section titled “Interfaces”ChildPromptParts
Section titled “ChildPromptParts”The Agent’s standing instructions and the focused task the parent delegates to a child.
Properties
Section titled “Properties”
readonlyagent:string&Brand<"AgentName">
persona
Section titled “persona”
readonlypersona:string&Brand<"AgentPersona">
readonlytask:string
Free text authored by the parent model, not the rendered loop task.
PromptParts
Section titled “PromptParts”The recorded trigger context, Agent instructions, and effective task presented to the parent.
Properties
Section titled “Properties”
readonlyagent:string&Brand<"AgentName">
payload
Section titled “payload”
readonlypayload:Json
persona
Section titled “persona”
readonlypersona:string&Brand<"AgentPersona">
repository
Section titled “repository”
readonlyrepository:string&Brand<"RepositoryName">
resume
Section titled “resume”
readonlyresume:Option<SalvagePushed>
The previous Attempt’s salvage checked out in the workspace, when the Run is retrying.
readonlytask:string&Brand<"AttemptTask">
Variables
Section titled “Variables”assembleChildPrompt
Section titled “assembleChildPrompt”
constassembleChildPrompt: (parts) =>string
Builds a child’s instructions from the delegated task and Agent persona, including GitHub attribution.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
parts |
ChildPromptParts |
Returns
Section titled “Returns”string
assemblePrompt
Section titled “assemblePrompt”
constassemblePrompt: (parts) =>string
Builds the parent’s instructions from the saved payload, effective task, and Agent persona, including GitHub attribution.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
parts |
PromptParts |
Returns
Section titled “Returns”string
githubSignature
Section titled “githubSignature”
constgithubSignature: (agent) =>string
The attribution line every GitHub comment or review written by an Agent ends with.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
agent |
AgentName |
Returns
Section titled “Returns”string