mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
Fix llama_index tests (#3063)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user