Find answers from the community

Updated 9 months ago

Hi again! I found the agent and tools

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:

Plain Text
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:
Plain Text
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.
L
S
8 comments
might need to be more specific than "not working" πŸ˜…
Nothing has really changed with this between updates
Could be just the LLM on openais side changed slightly
Yeah, there is an exception:. Not working means that data is not passed to the agent. The tool itself is working but data goes nowhere. And this exception is wrapped and ChatGPT says it doesn't know.
Attachment
image.png
Oh that's it's own thing.

Are you running I'm threads or on a server?

This is fixed in main, but haven't made a release yet. Try installing from source or downgrading to like llama-index-core==0.10.15 or so
Ah, okay. When approx can we expect this fix to be released? I think I can wait (if not so long haha)
probably tomorrow haha did get a chance to make a release today
Oh, this is really great! Thanks!!
Add a reply
Sign up and join the conversation on Discord