We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 631d4f0 commit e5c5d2bCopy full SHA for e5c5d2b
common/src/types/agent-template.ts
@@ -2,6 +2,7 @@ import type { Model } from '../constants'
2
import type { AgentState, AgentTemplateType, ToolResult } from './session-state'
3
import type { ToolName } from '../tools/constants'
4
import type { z } from 'zod/v4'
5
+import { ToolCall } from '../util/types/agent-config'
6
7
export type AgentTemplate<
8
P = string | undefined,
@@ -33,7 +34,7 @@ export type AgentTemplate<
33
34
}
35
36
export type StepGenerator = Generator<
- Omit<any, 'toolCallId'> | 'STEP' | 'STEP_ALL', // Generic tool call type
37
+ Omit<ToolCall, 'toolCallId'> | 'STEP' | 'STEP_ALL', // Generic tool call type
38
void,
39
{ agentState: AgentState; toolResult: ToolResult | undefined }
40
>
0 commit comments