(t *testing.T, tool tools.Tool, args string)
| 114 | } |
| 115 | |
| 116 | func callTool(t *testing.T, tool tools.Tool, args string) *tools.ToolCallResult { |
| 117 | t.Helper() |
| 118 | result, err := tool.Handler(t.Context(), tools.ToolCall{ |
| 119 | Function: tools.FunctionCall{Arguments: args}, |
| 120 | }) |
| 121 | require.NoError(t, err) |
| 122 | return result |
| 123 | } |
| 124 | |
| 125 | func TestOpenAPITool_Tools(t *testing.T) { |
| 126 | t.Parallel() |
no test coverage detected