Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
๐
๐
๐
Powered by
Hall
Inactive
Updated 2 months ago
0
Follow
@Logan M I'm trying to use a CoA agent
@Logan M I'm trying to use a CoA agent
Inactive
0
Follow
h
h
5 months ago
ยท
I'm trying to use a CoA agent but the method .as_agent() results in an error "AttributeError: 'CoAAgentWorker' object has no attribute 'as_agent'":
worker = CoAAgentWorker.from_tools(
tools=query_engine_tools,
llm=Settings.llm,
verbose=True,
)
agent = worker.as_agent()
I have already tried using the current version 0.10.49 and the version 0.10.33 for llama index and llama index core where the as_agent() method was added and both give the same error. as_agent() wasn't reported to be deprecated in the changelogs
L
h
7 comments
Share
Open in Discord
L
Logan M
5 months ago
its not deprecated? It works fine for me in the latest versions of
llama-index-core
L
Logan M
5 months ago
If you are running in a notebook, you'll need to restart after changing versions
h
h
5 months ago
I'm using vsc and I've already tried restarting both the computer and ide between versions
L
Logan M
5 months ago
It works fine for me locally, and on google colab
https://colab.research.google.com/drive/1iuIpLHgUpJL7nMnn_EG-JPO4MFlw1_9e?usp=sharing
h
h
5 months ago
Is there supposed to be an as_agent() method defined in CoAAgentWorker? I can't see it in the sourcecode but it is present in BaseAgentWorker
L
Logan M
5 months ago
CoAAgentWorker inherits from BaseAgentWorker
L
Logan M
5 months ago
You can see in the colab above it works fine
Add a reply
Sign up and join the conversation on Discord
Join on Discord