(t *testing.T)
| 282 | } |
| 283 | |
| 284 | func TestResolveShellTool(t *testing.T) { |
| 285 | tools := []official.Tool{ |
| 286 | {Type: "function", Function: official.ToolFunction{Name: "glob"}}, |
| 287 | {Type: "function", Function: official.ToolFunction{Name: "bash", Parameters: json.RawMessage(`{"properties":{"command":{"type":"string"}}}`)}}, |
| 288 | } |
| 289 | name, param := ResolveShellTool(tools) |
| 290 | if name != "bash" || param != "command" { |
| 291 | t.Fatalf("got (%q, %q)", name, param) |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | func TestStreamToToolCallDeltas(t *testing.T) { |
| 296 | calls := []official.ToolCall{ |
nothing calls this directly
no test coverage detected