AxAgentDemos Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxAgentDemos.md type AxAgentDemos

AxAgentDemos

TypeScript
type AxAgentDemos<IN, OUT, PREFIX> = 
  | {
  programId: `${PREFIX}.actor`;
  traces: Record<string, AxFieldValue>[];
}
  | {
  programId: `${PREFIX}.responder`;
  traces: OUT & Partial<IN>[];
};

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/agent/agentInternal/agentOptimizeTypes.ts#L48

Demo traces for AxAgent’s split architecture. Actor demos use the runtime code field (javascriptCode for JavaScript, <language>Code for other runtimes such as pythonCode). Responder demos use the agent’s output type + optional input fields.

Type Parameters

Type ParameterDefault type
IN extends AxGenIn-
OUT extends AxGenOut-
PREFIX extends stringstring
Docs