Skip to content

Commit c26496b

Browse files
committed
Fix: type => role in ToolMessage
1 parent 64bc975 commit c26496b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.agents/types/util-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export type AssistantMessage = {
117117
} & AuxiliaryData
118118

119119
export type ToolMessage = {
120-
type: 'tool'
120+
role: 'tool'
121121
content: ToolResultPart
122122
} & AuxiliaryData
123123

common/src/templates/initial-agents-dir/types/util-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export type AssistantMessage = {
117117
} & AuxiliaryData
118118

119119
export type ToolMessage = {
120-
type: 'tool'
120+
role: 'tool'
121121
content: ToolResultPart
122122
} & AuxiliaryData
123123

0 commit comments

Comments
 (0)