generate_retry_message
Generate a canonical retry feedback message for an LLM from a tool name, validation error, and attempted arguments, using the same formatting as runtime callers.
Instructions
Given a tool name, validation error, and attempted args, build the canonical LLM-facing retry feedback message. Uses agentvet's ToolArgError.toLLMFeedback() formatting so the wording matches what runtime callers see.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tool_name": "<tool_name>",
"validation_error": "<validation_error>",
"attempted_args": "<attempted_args>"
},
"name": "generate_retry_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool_name | Yes | ||
| validation_error | Yes | ||
| attempted_args | Yes |