Find answers from the community

Updated 10 months ago

tool2=code_spec.to_tool_list()

At a glance

The community members are discussing how to combine multiple tools into a single agent. They have tried using the code_spec.to_tool_list() function, but only one of the tools gets triggered. The community members have also tried using the example from the documentation, but it doesn't work for them. They are encountering an error message related to missing tool response messages. The community members are asking for a workaround to this issue.

Useful resources
tool2=code_spec.to_tool_list()
L
t
8 comments
combine those into a sigle list of tools?
yes i tried but only one of them gets triggered
is there another way of combining tools and make a single agent out of them?
i tried using the example given on documentation page but that too doesnt work for me
WARNING:llama_index.llms.openai.utils:Retrying llama_index.llms.openai.base.OpenAI._chat in 0.40240643987967806 seconds as it raised BadRequestError: Error code: 400 - {'error': {'message': "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_1lgE49IzjuMqltHFlEKfA175", 'type': 'invalid_request_error', 'param': 'messages.[2].role', 'code': None}}.
this is the error message it throws
@Logan M can u suggest some workaround?
Add a reply
Sign up and join the conversation on Discord