v3.1.5
New Feature:
- Support ZhipuAI GLM-4 and GLM-3-turbo Read here to see how to set settings
- Agent Component:
Decorator
:- Move
@agent.auto_func
into Decorator Component - New decorator
@agent.on_event(<event_name>)
to help developers to add event listener easier Read Example
- Move
Update:
- Update reply getter to avoid unnecessary error
queue.empty
to make developers easier to locate error - Update tool using logic and update search result data structure to make response with search better.
Bug Fixed:
- Fixed unexpected error when using Gemini and proxy is not set when using old version of httpx
新功能:
- 支持智谱GLM-4和GLM-3-turbo在线模型 阅读此案例了解如何配置使用
- 新增Agent组件:
Decorator
函数装饰器- 将3.1.4版本的
@agent.auto_func
函数装饰器从Agent类中移动到Decorator组件里 - 新增函数装饰器
@agent.on_event(<event_name>)
,帮助开发者为Agent请求回复内容添加事件监听器 阅读此案例了解事件监听器的作用
- 将3.1.4版本的
功能升级:
- 优化了请求线程中获取最终返回值的逻辑,以避免不必要的
queue.empty
报错,让开发者更方便地定位错误 - 升级了工具调用逻辑和搜索结果数据结构,现在使用搜索工具能够获得更好的回复结果了
问题修复:
- 修复了一个在使用旧版httpx时,请求Gemini但未设置proxy会报错的问题