MCPcopy Create free account
hub / github.com/docker/model-test / getExpectedTools

Function getExpectedTools

cmd/analyze-batch/main.go:391–399  ·  view source on GitHub ↗

getExpectedTools gets all expected tools from all variants

(testCase models.TestCase)

Source from the content-addressed store, hash-verified

389
390// getExpectedTools gets all expected tools from all variants
391func getExpectedTools(testCase models.TestCase) []string {
392 var tools []string
393 for _, variant := range testCase.ExpectedToolVariants {
394 for _, tool := range variant.Tools {
395 tools = append(tools, tool.Name)
396 }
397 }
398 return tools
399}
400
401// getActualTools gets all actual tool names called
402func getActualTools(response *models.ChatResponse) []string {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected