AxAgentDemos
type AxAgentDemos<IN, OUT, PREFIX> =
| {
programId: `${PREFIX}.actor`;
traces: Record<string, AxFieldValue> & object[];
}
| {
programId: `${PREFIX}.responder`;
traces: OUT & Partial<IN>[];
};
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/prompts/agent.ts#L52
Demo traces for AxAgent’s split architecture.
Actor demos use { javascriptCode } + optional actorFields.
Responder demos use the agent’s output type + optional input fields.
Type Parameters
| Type Parameter | Default type |
|---|---|
IN extends AxGenIn | - |
OUT extends AxGenOut | - |
PREFIX extends string | string |