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

AxFunction

TypeScript
type AxFunction = object;

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

Properties

componentId?

TypeScript
optional componentId: string;

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


description

TypeScript
description: string;

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


execution?

TypeScript
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

TypeScript
func: AxFunctionHandler;

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


name

TypeScript
name: string;

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


namespace?

TypeScript
optional namespace: string;

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


parameters?

TypeScript
optional parameters: AxFunctionJSONSchema;

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


protocol?

TypeScript
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?

TypeScript
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?

TypeScript
optional returns: AxFunctionJSONSchema;

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

Docs