parseArguments parses the arguments string into a map
(arguments string)
| 199 | |
| 200 | // parseArguments parses the arguments string into a map |
| 201 | func (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 |
| 214 | func (tr *TestRunner) isPathSuccessful(expected []models.ExpectedToolCall, actual []models.ActualToolCall) bool { |
no outgoing calls
no test coverage detected