(tool: string, state: Record<string, unknown>, id: string, messageID: string)
| 220 | } |
| 221 | |
| 222 | function toolPart(tool: string, state: Record<string, unknown>, id: string, messageID: string): ToolPart { |
| 223 | return { |
| 224 | id, |
| 225 | sessionID: "session-1", |
| 226 | messageID, |
| 227 | type: "tool", |
| 228 | callID: `call-${id}`, |
| 229 | tool, |
| 230 | state, |
| 231 | } as ToolPart |
| 232 | } |
| 233 | |
| 234 | function toolCommit(input: { |
| 235 | tool: string |