AxEventTarget Generated TypeScript API reference. typescript api api/reference build/apidocs/Interface.AxEventTarget.md interface AxEventTarget

AxEventTarget

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/types.ts#L311

Type Parameters

Type ParameterDefault type
INany
OUTany

Properties

PropertyTypeDescription
aiReadonly<AxAIService>-
createProgram?(instance: Readonly<{ identity: Readonly<AxEventIdentity>; instanceKey: string; targetId: string; }>) => | AxProgrammable<IN, OUT, string> | Promise<AxProgrammable<IN, OUT, string>>-
execution?"streaming" | "forward"-
forwardOptions?Readonly<AxProgramForwardOptions<string>>-
idstring-
input?Readonly<AxEventInputPlan<IN>>-
inputSignature?Readonly<AxSignature<Record<string, any>, Record<string, any>>>Required when createProgram is combined with declarative input plans.
mapInput?(ingress: Readonly<AxEventIngress>, context: Readonly<AxEventTargetInputContext>) => IN | Promise<IN>-
program?AxProgrammable<IN, OUT, string>-
resumeInput?Readonly<AxEventInputPlan<IN>>-
retrySafety?"unknown" | "idempotent"-
sinks?readonly AxEventSink<OUT>[]-
state?AxEventProgramStateAdapter<AxProgrammable<IN, OUT, string>>-
waitFor?readonly Readonly<AxEventContinuationPlan>[]-
wakeInput?Readonly<AxEventInputPlan<IN>>-
Docs