Skip to content

Commit

Permalink
Update llamaindex_conversable_agent.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lazToum authored Dec 3, 2024
1 parent 93b9818 commit 53f186c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autogen/agentchat/contrib/llamaindex_conversable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
from llama_index.core.base.llms.types import ChatMessage
from llama_index.core.chat_engine.types import AgentChatResponse

from packaging import version
from pydantic import BaseModel
from pydantic import __version__ as pydantic_version
# let's Avoid: AttributeError: type object 'Config' has no attribute 'copy'
if version.parse(pydantic_version) >= version.parse("2.0.0"):
from pydantic import ConfigDict
Expand Down

0 comments on commit 53f186c

Please sign in to comment.