( toolCalls []fantasy.ToolCallContent, exclusiveToolNames map[string]bool, )
| 1481 | } |
| 1482 | |
| 1483 | func firstExclusiveToolName( |
| 1484 | toolCalls []fantasy.ToolCallContent, |
| 1485 | exclusiveToolNames map[string]bool, |
| 1486 | ) (string, bool) { |
| 1487 | if len(toolCalls) <= 1 || len(exclusiveToolNames) == 0 { |
| 1488 | return "", false |
| 1489 | } |
| 1490 | |
| 1491 | for _, tc := range toolCalls { |
| 1492 | if exclusiveToolNames[tc.ToolName] { |
| 1493 | return tc.ToolName, true |
| 1494 | } |
| 1495 | } |
| 1496 | |
| 1497 | return "", false |
| 1498 | } |
| 1499 | |
| 1500 | func exclusiveToolPolicyResults( |
| 1501 | toolCalls []fantasy.ToolCallContent, |
no outgoing calls
no test coverage detected