Find answers from the community

Updated 4 months ago

Is this example working https://docs.

At a glance
Is this example working https://docs.llamaindex.ai/en/stable/examples/agent/custom_agent.html#setup-the-custom-agent. When i run this code I get raise ValueError(f'"{self.class.name}" object has no field "{name}"')
ValueError: "RetryAgentWorker" object has no field "_router_query_engine"
L
l
5 comments
ugh pydantic versioning issues
Theres in import to pydantic in that notebook
change it to from llama_index.bridge.pydantic import PrivateAttr
@Logan M Tnx a lot. I had a feeling it was a Pydantic versioning problem. This solved the problem, as u suggested. Documentation is misleading . Correct import:
from llama_index.bridge.pydantic import PrivateAttr, Field, BaseModel
Attachment
image.png
yea I should update the doc πŸ˜…
Add a reply
Sign up and join the conversation on Discord