Skip to content

Commit 89c5316

Browse files
authored
Merge pull request #49 from Serverless-Devs/add-adb-retrieve
feat(api): add loader_metadata to ADBDataAPI response
2 parents d3661a0 + e8ddd0c commit 89c5316

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

agentrun/knowledgebase/api/__data_async_template.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,11 @@ def _parse_query_content_response(
467467
"metadata": (
468468
match.metadata if hasattr(match, "metadata") else None
469469
),
470+
"loader_metadata": (
471+
match.loader_metadata
472+
if hasattr(match, "loader_metadata")
473+
else None
474+
),
470475
"rerank_score": (
471476
match.rerank_score
472477
if hasattr(match, "rerank_score")

agentrun/knowledgebase/api/data.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,11 @@ def _parse_query_content_response(
677677
"metadata": (
678678
match.metadata if hasattr(match, "metadata") else None
679679
),
680+
"loader_metadata": (
681+
match.loader_metadata
682+
if hasattr(match, "loader_metadata")
683+
else None
684+
),
680685
"rerank_score": (
681686
match.rerank_score
682687
if hasattr(match, "rerank_score")

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ agentscope = [
4242

4343
crewai = [
4444
"crewai>=1.6.0",
45+
"onnxruntime==1.23.2; python_version == '3.10'",
4546
]
4647

4748
pydantic-ai = [

0 commit comments

Comments
 (0)