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

AxStepHooks

TypeScript
type AxStepHooks = object;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/dsp/types.ts#L92

Hooks called at various points during the multi-step generation loop.

Properties

afterFunctionExecution()?

TypeScript
optional afterFunctionExecution: (ctx: AxStepContext) => void | Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/dsp/types.ts#L95

Parameters

ParameterType
ctxAxStepContext

Returns

void | Promise<void>


afterStep()?

TypeScript
optional afterStep: (ctx: AxStepContext) => void | Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/dsp/types.ts#L94

Parameters

ParameterType
ctxAxStepContext

Returns

void | Promise<void>


beforeStep()?

TypeScript
optional beforeStep: (ctx: AxStepContext) => void | Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/dsp/types.ts#L93

Parameters

ParameterType
ctxAxStepContext

Returns

void | Promise<void>

Docs