-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.0版本的上下文管理如何使用 #32
Comments
3.0.1版本有一个bug会导致Session能力无法正常工作 临时修正方法为:
from session_plugin import install
install(Agently) 更新主包中的session插件
import json
import Agently
from session_plugin import install
install(Agently)
agent_factory = Agently.AgentFactory(is_debug = True)
agent_factory\
.set_settings("model.OpenAI.auth", { "api_key": "Your-API-Key" })\
.set_settings("model.OpenAI.url", "Your-Base-URL-if-needed")\
.set_settings("is_debug", True)
agent = agent_factory.create_agent("my-agent")#任意唯一id
session_id = agent.active_session("my-session")#任意唯一id
agent\
.input("提醒我买个鸡蛋")\
.start()
agent\
.input("我们刚才说了什么")\
.start()
agent.stop_session() 此问题将被修复,并在下一次版本发布时更新 更新后issue关闭 |
已经在此次提交修复问题,兼容插件携带或不携带"prompt."开头的返回键值进行返回 |
fixed in 3.0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
3.0版本的上下文管理如何使用?
The text was updated successfully, but these errors were encountered: