-
Type:
Suggestion
-
Resolution: Unresolved
-
Component/s: Chat - Chat UI
-
None
When using custom agents it is sometimes needed for the agent to craft the response in a specific format (i.e. json, csv, etc) to be consumed by an API or another service.
Currently this can be partially achieved in custom agents by using specific prompts when creating the agent like:
when you are ready, respond with the data in the given format
Avoid using double quote (") character in your response, and replace them from " to ' always.
To provide a more consistent custom agent response, custom agent actions could utilise structured outputs more to ensure the output is more precise. This will enable agent creators to specify explicit formats for agents to reply in such as JSON.