AgentRunOptions
katanakit-js / AgentRunOptions
Interface: AgentRunOptions
Section titled “Interface: AgentRunOptions”Defined in: types/core/ai.ts:74
Options for running the tool-calling agent loop.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
history? |
{ content: string | null; name?: string; role: "system" | "user" | "assistant" | "tool"; tool_call_id?: string; tool_calls?: { function: { arguments: string; name: string; }; id: string; type: "function"; }[]; }[] |
Prior conversation (system messages are ignored; a system prompt is prepended). | - | types/core/ai.ts:78 |
maxSteps? |
number |
- | - | types/core/ai.ts:76 |
maxTokens? |
number |
- | AiChatOptions.maxTokens |
types/core/ai.ts:40 |
signal? |
AbortSignal |
- | AiChatOptions.signal |
types/core/ai.ts:42 |
systemPrompt? |
string |
Overrides the provider systemPrompt for this request. |
AiChatOptions.systemPrompt |
types/core/ai.ts:44 |
temperature? |
number |
- | AiChatOptions.temperature |
types/core/ai.ts:39 |
tools? |
AiTool[] |
- | - | types/core/ai.ts:75 |
topP? |
number |
- | AiChatOptions.topP |
types/core/ai.ts:41 |