MCPcopy Index your code
hub / github.com/coder/coder / firstExclusiveToolName

Function firstExclusiveToolName

coderd/x/chatd/chatloop/chatloop.go:1483–1498  ·  view source on GitHub ↗
(
	toolCalls []fantasy.ToolCallContent,
	exclusiveToolNames map[string]bool,
)

Source from the content-addressed store, hash-verified

1481}
1482
1483func 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
1500func exclusiveToolPolicyResults(
1501 toolCalls []fantasy.ToolCallContent,

Callers 1

applyExclusiveToolPolicyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected