Fix llama_index tests (#3063)

This commit is contained in:
Li Jiang
2024-07-02 21:55:32 +08:00
committed by GitHub
parent 66e50618bd
commit 8c56cc7d80

View File

@@ -8,15 +8,14 @@ logger = get_logger(__name__)
try:
from llama_index.core.agent.runner.base import AgentRunner
from llama_index.core.base.llms.types import ChatMessage
from llama_index.core.chat_engine.types import AgentChatResponse
from llama_index_client import ChatMessage
except ImportError as e:
logger.fatal("Failed to import llama-index. Try running 'pip install llama-index'")
raise e
class LLamaIndexConversableAgent(ConversableAgent):
def __init__(
self,
name: str,