I'm currently utilizing mistral.ai and have it functioning correctly. My goal now is to leverage more advanced features such as agents and tools. However, when I attempt to use these functionalities, I receive a 422 error without any additional explanation.
- I'm invoking agents directly through an API Call (Screenshots are attached).
- I'm calling functions via the advanced options (Screenshots are attached).
Since both methods result in the 422 error, I suspect I'm missing some fundamental understanding but can't pinpoint what it is.
Any assistance would be greatly appreciated.
Encountered this issue because the content-length header was missing. You can set it using the length
function, passing your body directly to it.
e.g. length({"agent_id": "ag:xxxx", "messages"...})
Welcome to the callin.io community!
You need to convert the 1.prompt
variable to a JSON string first before you can append it into another JSON string.
To do this, you can try using the JSON “Transform to JSON” module —
Transforms any object to JSON.
For more information, see in the help centre.
Hope this helps! Let me know if there are any further questions or issues.
P.S.: Investing some effort into the callin.io Academy will save you lots of time and frustration using callin.io.