Python Code Structured Tool Agent Execution #5585
Replies: 1 comment
-
Hi @nicolasmolanoo! I'm here to help you with any bugs, questions, or contributions you have. Let's get to the bottom of this together! To achieve the desired functionality where the agent executes the Python code and retrieves the actual data, ensure the following:
By ensuring these configurations and settings, the agent should be able to execute the Python code and retrieve the necessary data to answer the query. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
I am using a tool calling agent that has two different python code structured tools that each define their own python function. I have attached these tools to the agent. When a query is made the expected behavior is that the agent will look at the query decide which tool will get the information necessary to answer the query, execute the python code, get the data and use it to answer. However, when I make a query to the agent is just returns its reasoning. For example, I make a query and the response generated by the agent is:
"""
Based on the provided information, to find the inventory for item B, we will use the "get_stock_levels" function with the parameter "item" set to "B". Here's the code to get the inventory for item B:
python
get_stock_levels(item="B")
This function will return the stock level data for item B, which includes the current inventory level.
"""
The issue here is that it is not retrieving the actual data needed to answer the query. How can I achieve the desired functionality?
Beta Was this translation helpful? Give feedback.
All reactions