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

Method parseArguments

services/test_runner.go:201–211  ·  view source on GitHub ↗

parseArguments parses the arguments string into a map

(arguments string)

Source from the content-addressed store, hash-verified

199
200// parseArguments parses the arguments string into a map
201func (tr *TestRunner) parseArguments(arguments string) map[string]interface{} {
202 var args map[string]interface{}
203 if err := json.Unmarshal([]byte(arguments), &args); err != nil {
204 // If parsing fails, return the raw string
205 return map[string]interface{}{
206 "_raw_arguments": arguments,
207 "_parse_error": err.Error(),
208 }
209 }
210 return args
211}
212
213// isPathSuccessful checks if actual tool calls match a specific expected path
214func (tr *TestRunner) isPathSuccessful(expected []models.ExpectedToolCall, actual []models.ActualToolCall) bool {

Callers 1

evaluateAgentResponseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected