Tools response

#3
by MatVet - opened

When executing the tools the model marked as righ to use given the user query, how am I supposed to return the tools' response to the model? as part of the "user" role? in a specific format? what about when there is a single tool or multiple tools? Do I feed each response in a separate message?

You create a tool response message with tool role like

{'role' : 'tool', 'content' : <tool_response>}

and append it to the chat history. Then you generate again and the model will interpret this response and summarize it for the user.

Sign up or log in to comment