Hey guys,
I am trying to build an agent that search in my website for information before replying a chat. The issue I am having is that the agent is not using the correct JSON format for the tool, and I can’t figure out why.
I need the agent to output this:
{
"term": "multi coin combo",
"mode": ["feature_requests", "documentation"]
}
But instead is using the tool with this:
{
"query": "{\"term\": \"multi coin combo\", \"mode\": [\"feature_requests\", \"documentation\"]}"
}
I noticed this looking through the action logs, which was automatically appended to my original query:
Your output will be parsed and type-checked according to the provided schema instance, so make sure all fields in your output match the schema exactly and there are no trailing commas!
Here is the JSON Schema instance your output must adhere to. Include the enclosing markdown codeblock:
{"type":"object","properties":{"output":{"type":"object","properties":{"query":{"type":"string"},"mode":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}
I think this is what interfering with my desired output, but I can’t figure out where is this text coming from.
I would like to share the workflow but not sure how to do it?
Any help is appreciated.