(src tools.ToolAnnotations)
| 508 | } |
| 509 | |
| 510 | func 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 | |
| 523 | func cloneSchemaValue(v any) any { |
| 524 | switch x := v.(type) { |
no outgoing calls
no test coverage detected