modelscope / agentscope

Start building LLM-empowered multi-agent applications in an easier way.

Home Page:https://doc.agentscope.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

调用agent的speak方法,报错:Logger对象没有chat方法

tttonytan opened this issue · comments

Describe the bug
x = agent(x)

in speak
logger.chat(content)
^^^^^^^^^^^
AttributeError: 'Logger' object has no attribute 'chat'

是不是loguru版本不一样?

logger.chat 方法是 AgentScope 引入的新方法,需要调用 agentscope.init() 之后才会注册到 logger 中,请确保在运行到该行之前已经调用过 agentscope.init 方法。AgentScope 的使用案例可以参考 examples 目录。

了解谢谢