Files
java-ai-agents/koog/output/03-failure-modes.txt
T

18 lines
1.2 KiB
Plaintext

1. The tool throws IllegalArgumentException("Unknown service: nope")
agent.run returned: There is no such service.
LLM calls: 2
what the model was told: tool: Tool with name 'getServiceStatus' failed to execute due to the error: Unknown service: nope!
2. The model sends {"minutes":"soon"} for an int parameter
what the model was told: Tool with name 'error_rate' failed to parse arguments due to the error: Failed to parse literal '"soon"' as an int value at element: $.primitive | JSON input: "soon"
3. The model calls restartService, which is not registered
the history sent back, last two messages:
{"role":"assistant","content":"{\"tool_call_id\":\"c1\",\"tool_name\":\"restartService\",\"tool_args\":{\"service\":\"checkout\"}}"}
{"role":"user","content":"{\"tool_call_id\":\"c1\",\"tool_name\":\"restartService\",\"tool_result\":\"Tool with name 'restartService' not found in the tool registry. Use one of the available tools.\"}"}
4. The model answers every request with another tool call, maxIterations(6)
AIAgentMaxNumberOfIterationsReachedException
LLM calls made before it stopped: 3
default maxIterations of an agent you do not configure: 50