tool_results format doesn't make sense

#35
by Penn - opened
    {
        "role": "tool_calls",
        "content": [
            {
                "name": "get_current_weather",
                "arguments": {"location": "Paris, France", "format": "celsius"},
                
            }
        ]
    },
    {
        "role": "tool_results",
        "content": {"content": 22}
    },

tool_calls -> content is a list -- (to support parallel tool calls?)

how are multiple results put in tool_results -> content? The example shown get formatted like so:

[TOOL_CALLS][{'name': 'get_current_weather', 'arguments': {'location': 'Paris, France', 'format': 'celsius'}}]</s>[TOOL_RESULTS]{'content': 22}[/TOOL_RESULTS]

the actual dict w/ 'content' gets added to TOOL_RESULTS -- is this intended?

Penn changed discussion status to closed

Sign up or log in to comment