Skip to content

Commit e5c5d2b

Browse files
committed
Fix tool call type in agent template
1 parent 631d4f0 commit e5c5d2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/src/types/agent-template.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Model } from '../constants'
22
import type { AgentState, AgentTemplateType, ToolResult } from './session-state'
33
import type { ToolName } from '../tools/constants'
44
import type { z } from 'zod/v4'
5+
import { ToolCall } from '../util/types/agent-config'
56

67
export type AgentTemplate<
78
P = string | undefined,
@@ -33,7 +34,7 @@ export type AgentTemplate<
3334
}
3435

3536
export type StepGenerator = Generator<
36-
Omit<any, 'toolCallId'> | 'STEP' | 'STEP_ALL', // Generic tool call type
37+
Omit<ToolCall, 'toolCallId'> | 'STEP' | 'STEP_ALL', // Generic tool call type
3738
void,
3839
{ agentState: AgentState; toolResult: ToolResult | undefined }
3940
>

0 commit comments

Comments
 (0)