MCPcopy Create free account
hub / github.com/docker/docker-agent / MustSchemaFor

Function MustSchemaFor

pkg/tools/schema.go:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func MustSchemaFor[T any]() any {
10 schema, err := SchemaFor[T]()
11 if err != nil {
12 panic(err)
13 }
14 return schema
15}
16
17func SchemaFor[T any]() (any, error) {
18 schema, err := jsonschema.For[T](&jsonschema.ForOptions{})

Callers 3

ToolsMethod · 0.92
ToolsMethod · 0.92
ToolsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected