Skip to content
Discussion options

You must be logged in to vote

The verbose=True parameter causing the error with the new Pydantic version suggests that the verbose logging might be interacting poorly with the callback handlers. You can try removing or setting verbose=False to avoid this issue:

agent = create_pandas_dataframe_agent(
    llm,
    df,
    agent_type="openai-tools",
    verbose=False,  # Set verbose to False
    return_intermediate_steps=True,
    allow_dangerous_code=True,
    allow_dangerous_requests=True,
)

This should prevent the AttributeError from occurring. If you still need verbose output, consider implementing custom logging or debugging mechanisms.

To continue talking to Dosu, mention @dosu.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@mraguth
Comment options

@dosubot
Comment options

Comment options

You must be logged in to vote
2 replies
@dosubot
Comment options

Answer selected by mraguth
@adobelis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants