From 98514491caf38eead9093e8832323f596d1afa7c Mon Sep 17 00:00:00 2001 From: Daniele Martinoli Date: Fri, 28 Feb 2025 13:52:31 +0100 Subject: [PATCH 1/2] fixing tool prompt format Signed-off-by: Daniele Martinoli --- examples/agents/rag_as_attachments.py | 2 +- examples/agents/rag_with_vector_db.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/agents/rag_as_attachments.py b/examples/agents/rag_as_attachments.py index 571340f5e..60296328c 100644 --- a/examples/agents/rag_as_attachments.py +++ b/examples/agents/rag_as_attachments.py @@ -58,7 +58,7 @@ def run_main(host: str, port: int, disable_safety: bool = False): }, toolgroups=["builtin::rag"], tool_choice="auto", - tool_prompt_format="json", + tool_prompt_format="python_list", input_shields=available_shields if available_shields else [], output_shields=available_shields if available_shields else [], enable_session_persistence=False, diff --git a/examples/agents/rag_with_vector_db.py b/examples/agents/rag_with_vector_db.py index d9a289f2c..2391164ca 100644 --- a/examples/agents/rag_with_vector_db.py +++ b/examples/agents/rag_with_vector_db.py @@ -88,7 +88,7 @@ def run_main(host: str, port: int, disable_safety: bool = False): } ], tool_choice="auto", - tool_prompt_format="json", + tool_prompt_format="python_list", input_shields=available_shields if available_shields else [], output_shields=available_shields if available_shields else [], enable_session_persistence=False, From 625df1db0b198fb66ada75b199eb18c147fc22d0 Mon Sep 17 00:00:00 2001 From: Daniele Martinoli Date: Tue, 4 Mar 2025 10:12:47 +0100 Subject: [PATCH 2/2] removed setting after recent commits Signed-off-by: Daniele Martinoli --- examples/agents/rag_as_attachments.py | 1 - examples/agents/rag_with_vector_db.py | 1 - 2 files changed, 2 deletions(-) diff --git a/examples/agents/rag_as_attachments.py b/examples/agents/rag_as_attachments.py index 60296328c..0c5bb2452 100644 --- a/examples/agents/rag_as_attachments.py +++ b/examples/agents/rag_as_attachments.py @@ -58,7 +58,6 @@ def run_main(host: str, port: int, disable_safety: bool = False): }, toolgroups=["builtin::rag"], tool_choice="auto", - tool_prompt_format="python_list", input_shields=available_shields if available_shields else [], output_shields=available_shields if available_shields else [], enable_session_persistence=False, diff --git a/examples/agents/rag_with_vector_db.py b/examples/agents/rag_with_vector_db.py index 2391164ca..f1ebf5284 100644 --- a/examples/agents/rag_with_vector_db.py +++ b/examples/agents/rag_with_vector_db.py @@ -88,7 +88,6 @@ def run_main(host: str, port: int, disable_safety: bool = False): } ], tool_choice="auto", - tool_prompt_format="python_list", input_shields=available_shields if available_shields else [], output_shields=available_shields if available_shields else [], enable_session_persistence=False,