From 326120b36efc31d30e85721f5d392c1a7c659d41 Mon Sep 17 00:00:00 2001 From: Sodawyx Date: Fri, 6 Feb 2026 11:56:09 +0800 Subject: [PATCH 1/2] feat(api): add loader_metadata to ADBDataAPI response This commit enhances the ADBDataAPI by including the loader_metadata field in the response structure for both the async template and data API. This addition allows for better tracking and management of loader-specific metadata associated with matches. Additionally, the example knowledgebase configuration has been updated to reflect a new ADB knowledge base name and modified query execution. Co-developed-by: Aone Copilot Signed-off-by: Sodawyx --- agentrun/knowledgebase/api/__data_async_template.py | 5 +++++ agentrun/knowledgebase/api/data.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/agentrun/knowledgebase/api/__data_async_template.py b/agentrun/knowledgebase/api/__data_async_template.py index 51e9c43..de99b50 100644 --- a/agentrun/knowledgebase/api/__data_async_template.py +++ b/agentrun/knowledgebase/api/__data_async_template.py @@ -467,6 +467,11 @@ def _parse_query_content_response( "metadata": ( match.metadata if hasattr(match, "metadata") else None ), + "loader_metadata": ( + match.loader_metadata + if hasattr(match, "loader_metadata") + else None + ), "rerank_score": ( match.rerank_score if hasattr(match, "rerank_score") diff --git a/agentrun/knowledgebase/api/data.py b/agentrun/knowledgebase/api/data.py index 747157c..d5d1a58 100644 --- a/agentrun/knowledgebase/api/data.py +++ b/agentrun/knowledgebase/api/data.py @@ -677,6 +677,11 @@ def _parse_query_content_response( "metadata": ( match.metadata if hasattr(match, "metadata") else None ), + "loader_metadata": ( + match.loader_metadata + if hasattr(match, "loader_metadata") + else None + ), "rerank_score": ( match.rerank_score if hasattr(match, "rerank_score") From e8ddd0c5259e9122fc7b040dd3f29e5bd3e4882c Mon Sep 17 00:00:00 2001 From: OhYee Date: Fri, 6 Feb 2026 12:21:53 +0800 Subject: [PATCH 2/2] build(deps): add onnxruntime dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add onnxruntime==1.23.2 as a dependency to the crewai package configuration 添加 onnxruntime==1.23.2 作为 crewai 包的依赖配置 Change-Id: I211d952d2bf4ab4c2bd962c634c8d60ec0302424 Signed-off-by: OhYee --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 251c959..11e9e6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ agentscope = [ crewai = [ "crewai>=1.6.0", + "onnxruntime==1.23.2; python_version == '3.10'", ] pydantic-ai = [