Hi again! I found the agent and tools stopped working after the upgrade. Previously, I found the gpt-4.5 didn't work and gpt-3.5 was working but now, nothing works. I created several tools, one of them was getting the data from the Internet, and it does its work. But, for some reason, the data is not passed to it and the agent can't answer. Here is my code:
def tool_function(**kwargs):
payload = kwargs.get('kwargs')
result_data = requests.post(func_url, json=payload)
return [Document(text=result_data.text)] # <=== Data loaded here
To add the tool to the agent, I use LoadAndSearchToolSpec:
load_and_search_tool = LoadAndSearchToolSpec.from_defaults(tool).to_tool_list()
tools.extend(load_and_search_tool)
Please help! Thanks.
UPD Tried another tool that is not wrapped with LoadAndSearchToolSpec, it's working but not this one.