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

Function cloneToolAnnotations

pkg/session/session.go:510–521  ·  view source on GitHub ↗
(src tools.ToolAnnotations)

Source from the content-addressed store, hash-verified

508}
509
510func cloneToolAnnotations(src tools.ToolAnnotations) tools.ToolAnnotations {
511 cp := src
512 if src.DestructiveHint != nil {
513 hint := *src.DestructiveHint
514 cp.DestructiveHint = &hint
515 }
516 if src.OpenWorldHint != nil {
517 hint := *src.OpenWorldHint
518 cp.OpenWorldHint = &hint
519 }
520 return cp
521}
522
523func cloneSchemaValue(v any) any {
524 switch x := v.(type) {

Callers 1

cloneToolDefinitionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected