Skip to content

Commit 01700b9

Browse files
authored
Merge pull request #335 from antgroup/dev
Merge dev branch into master branch
2 parents 85ac53a + da05b63 commit 01700b9

File tree

345 files changed

+6045
-1030
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

345 files changed

+6045
-1030
lines changed

.github/ISSUE_TEMPLATE/issue_template-bug.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ body:
1010
attributes:
1111
label: Version
1212
description: What is the version of your agentUniverse? | 您使用的agentUniverse版本是多少?
13-
placeholder: "Example: version 0.0.13"
13+
placeholder: "Example: version 0.0.15"
1414
validations:
1515
required: true
1616
- type: textarea

.github/ISSUE_TEMPLATE/issue_template-question.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ body:
2323
attributes:
2424
label: Version
2525
description: What is the version of your agentUniverse? | 您使用的agentUniverse版本是多少?
26-
placeholder: "Example: version 0.0.13"
26+
placeholder: "Example: version 0.0.15"
2727
validations:
2828
required: false
2929
- type: textarea

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ ipython_config.py
102102
# This is especially recommended for binary packages to ensure reproducibility, and is more
103103
# commonly ignored for libraries.
104104
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
105-
#poetry.lock
105+
poetry.lock
106106

107107
# pdm
108108
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
@@ -169,3 +169,7 @@ cython_debug/
169169
*.pyc
170170
__pycache__/
171171
/poetry.lock
172+
173+
174+
# vscode
175+
.vscode/launch.json

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,45 @@ Note - Additional remarks regarding the version.
2424
***************************************************
2525

2626
# Version Update History
27+
## [0.0.15] - 2025-03-03
28+
### Added
29+
- New embedding components
30+
- Azure-OpenAI embedding component
31+
- Gemini embedding component
32+
- Doubao embedding component
33+
- New knowledge loading reader components
34+
- Web page reader component based on BeautifulSoup (bs4)
35+
- Image reader component based on OCR technology
36+
- CSV format reader component
37+
- New tool plugins
38+
- Arxiv paper retrieval and query tool plugin
39+
- Jina AI intelligent search tool plugin
40+
- Added standard LLM output parser for reasoning-type models
41+
- Added standard logger sink for agents, LLMs, and tools
42+
- Added retry function annotation
43+
44+
### Changed
45+
- Improved project configuration experience, with the following key optimizations:
46+
- Project configuration now supports global PACKAGE path replacement. For details, see the PACKAGE_PATH_INFO parameter in the sample project's config.toml file.
47+
- Supports user-defined configuration extensions and YAML function extensions. For details, see the EXTENSION_MODULES parameter in the sample project's config.toml file.
48+
- Updated custom_key.toml.sample with more detailed parameter content.
49+
- Submit a set of commonly used model configuration YAML files. For details, see the llm directory in the sample project.
50+
- YAML configuration now supports user-defined loading of attributes using environment variables and extension functions. For details, see the api_key comments in the llm sample of the sample project.
51+
- Simplified LLM configuration. By default, it reads the global default_llm configuration. For details, see the default_llm.toml configuration in the llm sample of the sample project.
52+
- Simplified component extension configuration. The module part in the component metadata can be left blank, and it will default to searching for a Python extension file with the same name in the same directory.
53+
- Optimized project startup process, with the following key improvements:
54+
- Improved LLM component startup registration. Only LLM instances that are dependent on by components like agents and tools are started.
55+
- Enhanced error info during project startup.
56+
- Other changes:
57+
- Renamed LocalMemoryStorage to RamMemoryStorage for memory storage objects.
58+
59+
### Note
60+
- Added image_build image packaging files and tutorial documents for application projects.
61+
- Added CONTRIBUTING.md documentation for the project.
62+
- Standardized PR and ISSUE templates for the project.
63+
- Added a sample practice for agents based on multimodal capabilities. For details, see the examples/multimodal_app directory in the project.
64+
- Our project was included in the awesome-deepseek-integration list released by DeepSeek in February.
65+
2766
## [0.0.14] - 2025-01-26
2867
### Added
2968
- aU Memory Component Version Update

CHANGELOG_zh.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,45 @@ Note - 对于版本的额外说明。
2424
***************************************************
2525

2626
# 版本更新记录
27+
## [0.0.15] - 2025-03-03
28+
### Added
29+
- embedding组件新增
30+
- 新增azure-openai embedding组件
31+
- 新增gemini embedding组件
32+
- 新增豆包embedding标准组件
33+
- 知识加载reader组件新增
34+
- 新增基于bs4的网页读取组件
35+
- 新增基于OCR技术的图像加载组件
36+
- 新增csv格式表格加载组件
37+
- 工具插件新增
38+
- 新增Arxiv文献检索查询工具插件
39+
- 新增Jina AI智能搜索工具插件
40+
- 新增reasoning类模型标准LLM输出解析器
41+
- 新增agent、llm、tool相关日志采集标准logger
42+
- 新增retry函数注解
43+
44+
### Changed
45+
- 项目配置体验优化,主要优化点如下
46+
- 项目配置支持全局PACKAGE路径替换,详情见样例工程config.toml文件PACKAGE_PATH_INFO参数部分
47+
- 支持用户自定义配置扩展与yaml函数扩展,详情见样例工程config.toml文件EXTENSION_MODULES参数部分
48+
- custom_key.toml.sample更新,提供更详细与全面的参数内容
49+
- 内置一批常用模型配置yaml,详情见样例工程llm目录
50+
- yaml配置支持用户使用环境变量与扩展函数自定义加载对应属性,详情见样例工程llm样例中api_key注释说明部分
51+
- llm配置简化,默认读取全局default_llm配置,详情见样例工程llm样例default_llm.toml配置内容
52+
- 组件扩展配置简化,组件metadata中module部分可不填写,默认寻找同层级同名py扩展文件
53+
- 项目启动流程优化,主要优化点如下
54+
- LLM组件启动注册优化,只启动用户在agent、tool等组件中依赖启动的LLM实例
55+
- 项目启动报错提示优化
56+
- 其他变更
57+
- 内存记忆存储对象LocalMemoryStorage更名RamMemoryStorage
58+
59+
### Note
60+
- 新增应用工程image_build镜像打包文件与教程文档
61+
- 新增项目贡献者开发文档
62+
- 规范项目PR与ISSUE模版
63+
- 新增基于模型多模态能力的agent样例实践,详情见项目examples/multimodal_app
64+
- 项目于2月收录于deepseek发布的awesome-deepseek-integration榜单
65+
2766
## [0.0.14] - 2025-01-26
2867
### Added
2968
- aU记忆机制全面改版升级

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Language version: [English](./README.md) | [中文](./README_zh.md) | [日本語
55
![](https://img.shields.io/badge/framework-agentUniverse-pink)
66
![](https://img.shields.io/badge/python-3.10%2B-blue?logo=Python)
77
[![](https://img.shields.io/badge/%20license-Apache--2.0-yellow)](LICENSE)
8-
[![Static Badge](https://img.shields.io/badge/pypi-v0.0.13-blue?logo=pypi)](https://pypi.org/project/agentUniverse/)
8+
[![Static Badge](https://img.shields.io/badge/pypi-v0.0.15-blue?logo=pypi)](https://pypi.org/project/agentUniverse/)
99

1010
![](docs/guidebook/_picture/logo_bar.jpg)
1111
****************************************

README_jp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
![](https://img.shields.io/badge/framework-agentUniverse-pink)
66
![](https://img.shields.io/badge/python-3.10%2B-blue?logo=Python)
77
[![](https://img.shields.io/badge/%20license-Apache--2.0-yellow)](LICENSE)
8-
[![Static Badge](https://img.shields.io/badge/pypi-v0.0.13-blue?logo=pypi)](https://pypi.org/project/agentUniverse/)
8+
[![Static Badge](https://img.shields.io/badge/pypi-v0.0.15-blue?logo=pypi)](https://pypi.org/project/agentUniverse/)
99

1010
![](docs/guidebook/_picture/logo_bar.jpg)
1111
****************************************

README_zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
![](https://img.shields.io/badge/framework-agentUniverse-pink)
66
![](https://img.shields.io/badge/python-3.10%2B-blue?logo=Python)
77
[![](https://img.shields.io/badge/%20license-Apache--2.0-yellow)](LICENSE)
8-
[![Static Badge](https://img.shields.io/badge/pypi-v0.0.13-blue?logo=pypi)](https://pypi.org/project/agentUniverse/)
8+
[![Static Badge](https://img.shields.io/badge/pypi-v0.0.15-blue?logo=pypi)](https://pypi.org/project/agentUniverse/)
99

1010
![](docs/guidebook/_picture/logo_bar.jpg)
1111
****************************************

agentuniverse/agent/action/knowledge/knowledge.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import os
99
import re
1010
import traceback
11+
from copy import deepcopy
1112
from typing import Optional, Dict, List, Any
1213
from concurrent.futures import wait, ALL_COMPLETED
1314

@@ -64,6 +65,7 @@ class Knowledge(ComponentBase):
6465
6566
ext_info (Optional[Dict]): The extended information of the knowledge.
6667
"""
68+
6769
class Config:
6870
arbitrary_types_allowed = True
6971

@@ -78,6 +80,7 @@ class Config:
7880
readers: Dict[str, str] = dict()
7981
insert_executor: Optional[ThreadPoolExecutorWithReturnValue] = None
8082
query_executor: Optional[ThreadPoolExecutorWithReturnValue] = None
83+
tracing: Optional[bool] = None
8184
ext_info: Optional[Dict] = None
8285

8386
def __init__(self, **kwargs):
@@ -263,6 +266,8 @@ def _initialize_by_component_configer(self,
263266
self.post_processors = knowledge_configer.post_processors
264267
if hasattr(knowledge_configer, "readers"):
265268
self.readers = knowledge_configer.readers
269+
if hasattr(knowledge_configer, "tracing"):
270+
self.tracing = knowledge_configer.tracing
266271
return self
267272

268273
def langchain_query(self, query: str) -> str:
@@ -294,3 +299,15 @@ def as_langchain_tool(self) -> LangchainTool:
294299
description=self.description or '' + args_description,
295300
func=self.langchain_query,
296301
)
302+
303+
def create_copy(self):
304+
copied = self.model_copy()
305+
copied.stores = self.stores.copy()
306+
copied.query_paraphrasers = self.query_paraphrasers.copy()
307+
copied.insert_processors = self.insert_processors.copy()
308+
copied.update_processors = self.update_processors.copy()
309+
copied.post_processors = self.post_processors.copy()
310+
copied.readers = deepcopy(self.readers)
311+
if self.ext_info is not None:
312+
copied.ext_info = deepcopy(self.ext_info)
313+
return copied

agentuniverse/agent/action/knowledge/rag_router/nlu_rag_router.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,3 @@ def _initialize_by_component_configer(self,
5353
self.agent_name = rag_router_config.agent_name
5454
if hasattr(rag_router_config, "store_amount"):
5555
self.store_amount = rag_router_config.store_amount
56-
57-
58-

0 commit comments

Comments
 (0)