The default SGRAgent specifies output schema by setting response_format. But this is not supported for every model and/or architecture. Therefore we need an additional agent implementation that repeats SGRAgent behaviour but ensures output format by explicitly asking for in its prompt.
Excerpt from an example prompt:
...
You may call one or more functions to assist with the user query.
You are provided with function signatures within <tools></tools> XML tags:
<tools>
=> The same scheme for tools as we use in SGRAgent
</tools>
For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
<tool_call>
{"name": <function-name>, "arguments": <args-json-object>}
</tool_call>
The default SGRAgent specifies output schema by setting response_format. But this is not supported for every model and/or architecture. Therefore we need an additional agent implementation that repeats SGRAgent behaviour but ensures output format by explicitly asking for in its prompt.
Excerpt from an example prompt: