AxChatSession
Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/session.ts#L28
Optional AxAI capability. The caller owns execution; providers own transport.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
model | readonly | string | - |
signal? | readonly | AbortSignal | Aborts when the transport closes or fails, including between responses. |
Methods
close()
close(): void;Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/session.ts#L39
Returns
void
continue()
continue(): Promise<void>;Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/session.ts#L34
Returns
Promise<void>
events()
events(): AsyncIterable<AxChatSessionEvent>;Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/session.ts#L32
Returns
AsyncIterable<AxChatSessionEvent>
setThinkingTokenBudget()
setThinkingTokenBudget(level: NonNullable<undefined | "high" | "low" | "none" | "medium" | "minimal" | "highest">): Promise<"next-response">;Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/session.ts#L36
Parameters
| Parameter | Type |
|---|---|
level | NonNullable<undefined | "high" | "low" | "none" | "medium" | "minimal" | "highest"> |
Returns
Promise<"next-response">
steer()
steer(text: string): Promise<"native" | "next-response">;Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/session.ts#L35
Parameters
| Parameter | Type |
|---|---|
text | string |
Returns
Promise<"native" | "next-response">
submitToolResults()
submitToolResults(results: readonly AxFunctionResult[]): Promise<void>;Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/session.ts#L33
Parameters
| Parameter | Type |
|---|---|
results | readonly AxFunctionResult[] |
Returns
Promise<void>