Find answers from the community

h
h
Offline, last seen 3 months ago
Joined September 25, 2024
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
7 comments
L
h
@kapa.ai Chain of Abstraction help
76 comments
k
h