Function
createToolCall
(
id: string,
name: string,
args: object,
)
Source from the content-addressed store, hash-verified
| 208 | }); |
| 209 | |
| 210 | const createToolCall = ( |
| 211 | id: string, |
| 212 | name: string, |
| 213 | args: object, |
| 214 | ): ToolCall => ({ |
| 215 | id, |
| 216 | type: "function", |
| 217 | function: { |
| 218 | name, |
| 219 | arguments: JSON.stringify(args), |
| 220 | }, |
| 221 | }); |
| 222 | |
| 223 | test("extractToolSequence should handle a single user message", () => { |
| 224 | const messages: ChatMessage[] = [createUserMessage("Hello world!")]; |
Tested by
no test coverage detected