AI Agent: INVALID_TOOL_RESPONSE

Certified Senior Developer

Sometimes, when I test an agent, it processes for a while, then after a few minutes throws this error:

System Error

This appears to be a system issue. Try again later or submit a support case if the problem continues.

Source: Run Agent - Agent: DG_testAgent - Run ID: 52
Details: LLM execution failed: INVALID_TOOL_RESPONSE - Required schema field not provided in data tree: textValue
Any suggestions on what could be going on? Sometimes the agent succeeds, but the frequency of getting this error makes me concerned about using this in production.
26.3 environment hosted on Appian Cloud.

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Senior Developer
    in reply to Shubham Aware

    Not entirely sure which part you're suggesting for the fix. The agent's output is a record type, and I've given it explicit instructions about how to populate that. Are you suggesting to add a secondary output of type Text, with instructions along the lines of "If you run into any problems, just put a cry for help here"? Or are you instead suggesting that the problem's with one or more of the tools that I've given to the agent? In my current test, those tools are simply record types, which doesn't give me the opportunity for a "string fallback".