Skip to content

expert ​

Use agencyExpertAgent before generating Agency source when a task needs language-specific guidance. Pass renderGuidance output as the coding agent's context, or give the checklist to a verifier. The shared helpers are in std::agents/lib/expertGuidance.

Functions ​

buildTools ​

ts
buildTools(): any[]

Return the Agency expert's documentation and source-checking tools.

Returns: any[]

(source)

agencyExpertAgent ​

ts
@guarded(cost: maxCost, time: maxTime)
agencyExpertAgent(
  task: string,
  context: string = "",
  maxCost: number = $10.00,
  maxTime: number = 10m,
  model: string = "",
  provider: string = "",
  session: string = "",
  extraTools: any[] = [],
): Result<ExpertGuidance>

Consult an Agency-language specialist: return the syntax rules and acceptance checklist a solver needs, grounded in the bundled docs.

Parameters:

NameTypeDefaultDescription
taskstringThe task to advise on
contextstring""Extra material, or ""
maxCostnumber$10.00Cost budget in USD.
maxTimenumber10mTime budget in milliseconds.
modelstring""Model override, or "" for the ambient model
providerstring""Provider for the model override, ignored when model is empty.
sessionstring""Session name to share a thread across calls, or "" for isolated
extraToolsany[][]Extra tools to offer the LLM, appended to the built-in set

Returns: Result<ExpertGuidance>

Throws: std::guard

(source)