File tree Expand file tree Collapse file tree 2 files changed +19
-18
lines changed
Expand file tree Collapse file tree 2 files changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -164,15 +164,6 @@ export interface Message {
164164 timestamp ?: number
165165}
166166
167- /**
168- * Result from executing a tool
169- */
170- export interface ToolResult {
171- success : boolean
172- data ?: any
173- error ?: string
174- }
175-
176167/**
177168 * Context provided to handleSteps generator function
178169 */
@@ -190,6 +181,15 @@ export interface ToolCall<T extends ToolName = ToolName> {
190181 args ?: Tools . GetToolParams < T >
191182}
192183
184+ /**
185+ * Result from executing a tool
186+ */
187+ export interface ToolResult {
188+ toolName : string
189+ toolCallId : string
190+ result : string
191+ }
192+
193193/**
194194 * JSON Schema definition (for prompt schema or output schema)
195195 */
Original file line number Diff line number Diff line change @@ -164,15 +164,6 @@ export interface Message {
164164 timestamp ?: number
165165}
166166
167- /**
168- * Result from executing a tool
169- */
170- export interface ToolResult {
171- success : boolean
172- data ?: any
173- error ?: string
174- }
175-
176167/**
177168 * Context provided to handleSteps generator function
178169 */
@@ -190,6 +181,16 @@ export interface ToolCall<T extends ToolName = ToolName> {
190181 args ?: Tools . GetToolParams < T >
191182}
192183
184+ /**
185+ * Result from executing a tool
186+ */
187+ export interface ToolResult {
188+ toolName : string
189+ toolCallId : string
190+ result : string
191+ }
192+
193+
193194/**
194195 * JSON Schema definition (for prompt schema or output schema)
195196 */
You can’t perform that action at this time.
0 commit comments