AxFunction
type AxFunction = object;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L439
Properties
componentId?
optional componentId: string;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L450
description
description: string;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L449
execution?
optional execution: "blocking" | "background";Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L447
Background tools permit independent model work while they execute.
func
func: AxFunctionHandler;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L469
name
name: string;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L448
namespace?
optional namespace: string;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L453
parameters?
optional parameters: AxFunctionJSONSchema;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L451
protocol?
optional protocol:
| {
annotations?: Record<string, unknown>;
kind: "mcp";
meta?: Record<string, unknown>;
name: string;
namespace: string;
}
| {
kind: "ucp";
meta?: Record<string, unknown>;
name: string;
namespace: string;
};Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L455
Native protocol identity retained independently of provider tool names.
resultPolicy?
optional resultPolicy: "inspect" | "data";Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L445
AxAgent pauses for model interpretation after results by default.
Use data only for results whose documented contract permits deterministic
processing and chaining without a new model decision. Does not affect AxGen.
returns?
optional returns: AxFunctionJSONSchema;Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L452