agent.run("Is checkout healthy?") -> checkout is DEGRADED HTTP calls the model endpoint received: 2 POST /v1/chat/completions POST /v1/chat/completions Request 1 - messages: system: You are an on-call assistant. Use the tools to answer; never guess a status. user: Is checkout healthy? Request 1 - tools Koog derived from ServiceTools: {"name":"getServiceStatus","description":"Returns the current status of one service: HEALTHY, DEGRADED or DOWN","parameters":{"type":"object","properties":{"service":{"description":"Service name, for example checkout","type":"string"}},"required":["service"]}} {"name":"error_rate","description":"Returns the percentage of failed requests for one service over the last N minutes","parameters":{"type":"object","properties":{"service":{"description":"Service name, for example checkout","type":"string"},"minutes":{"description":"Window in minutes","type":"integer"}},"required":["service","minutes"]}} Request 2 - messages (the tool call and its result are now in the history): {"role":"system","content":"You are an on-call assistant. Use the tools to answer; never guess a status."} {"role":"user","content":"Is checkout healthy?"} {"role":"assistant","tool_calls":[{"id":"call_1","function":{"name":"getServiceStatus","arguments":"{\"service\":\"checkout\"}"},"type":"function"}]} {"role":"tool","content":"\"DEGRADED\"","tool_call_id":"call_1"}