MCPcopy Index your code
hub / github.com/docker/docker-agent / callTool

Function callTool

pkg/tools/builtin/openapi/openapi_test.go:116–123  ·  view source on GitHub ↗
(t *testing.T, tool tools.Tool, args string)

Source from the content-addressed store, hash-verified

114}
115
116func 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
125func TestOpenAPITool_Tools(t *testing.T) {
126 t.Parallel()

Calls 1

ContextMethod · 0.80

Tested by

no test coverage detected