From 41ae9e8d066493602f4aa194826971f45b625420 Mon Sep 17 00:00:00 2001 From: Salman Paracha Date: Sat, 20 Dec 2025 10:50:39 -0800 Subject: [PATCH] removed prompt guards altogether from our repo - use filters --- README.md | 6 ------ demos/samples_python/currency_exchange/arch_config.yaml | 6 ------ demos/samples_python/stock_quote/arch_config.yaml | 6 ------ demos/samples_python/weather_forecast/arch_config.yaml | 6 ------ demos/use_cases/ollama/arch_config.yaml | 6 ------ docs/source/guides/includes/arch_config.yaml | 6 ------ .../includes/arch_config_full_reference_rendered.yaml | 6 ------ tests/archgw/arch_config.yaml | 6 ------ 8 files changed, 48 deletions(-) diff --git a/README.md b/README.md index 70d03b62..519e9719 100644 --- a/README.md +++ b/README.md @@ -143,12 +143,6 @@ llm_providers: system_prompt: | You are a helpful assistant. -prompt_guards: - input_guards: - jailbreak: - on_exception: - message: Looks like you're curious about my abilities, but I can only provide assistance for currency exchange. - prompt_targets: - name: currency_exchange description: Get currency exchange rate from USD to other currencies diff --git a/demos/samples_python/currency_exchange/arch_config.yaml b/demos/samples_python/currency_exchange/arch_config.yaml index 71c06d18..064befa1 100644 --- a/demos/samples_python/currency_exchange/arch_config.yaml +++ b/demos/samples_python/currency_exchange/arch_config.yaml @@ -26,12 +26,6 @@ endpoints: system_prompt: | You are a helpful assistant. Only respond to queries related to currency exchange. If there are any other questions, I can't help you. -prompt_guards: - input_guards: - jailbreak: - on_exception: - message: Looks like you're curious about my abilities, but I can only provide assistance for currency exchange. - prompt_targets: - name: currency_exchange description: Get currency exchange rate from USD to other currencies diff --git a/demos/samples_python/stock_quote/arch_config.yaml b/demos/samples_python/stock_quote/arch_config.yaml index fcff2c0b..5cd20a44 100644 --- a/demos/samples_python/stock_quote/arch_config.yaml +++ b/demos/samples_python/stock_quote/arch_config.yaml @@ -19,12 +19,6 @@ endpoints: system_prompt: | You are a helpful assistant. -prompt_guards: - input_guards: - jailbreak: - on_exception: - message: Looks like you're curious about my abilities, but I can only provide assistance for currency exchange. - prompt_targets: - name: stock_quote description: get current stock exchange rate for a given symbol diff --git a/demos/samples_python/weather_forecast/arch_config.yaml b/demos/samples_python/weather_forecast/arch_config.yaml index 6d33a5c5..eba38764 100644 --- a/demos/samples_python/weather_forecast/arch_config.yaml +++ b/demos/samples_python/weather_forecast/arch_config.yaml @@ -39,12 +39,6 @@ llm_providers: system_prompt: | You are a helpful assistant. -prompt_guards: - input_guards: - jailbreak: - on_exception: - message: Looks like you're curious about my abilities, but I can only provide assistance for weather forecasting. - prompt_targets: - name: get_current_weather description: Get current weather at a location. diff --git a/demos/use_cases/ollama/arch_config.yaml b/demos/use_cases/ollama/arch_config.yaml index 5f88b0a3..911af238 100644 --- a/demos/use_cases/ollama/arch_config.yaml +++ b/demos/use_cases/ollama/arch_config.yaml @@ -17,12 +17,6 @@ llm_providers: system_prompt: | You are a helpful assistant. -prompt_guards: - input_guards: - jailbreak: - on_exception: - message: Looks like you're curious about my abilities, but I can only provide assistance for currency exchange. - prompt_targets: - name: currency_exchange description: Get currency exchange rate from USD to other currencies diff --git a/docs/source/guides/includes/arch_config.yaml b/docs/source/guides/includes/arch_config.yaml index 89501f88..41c06e79 100644 --- a/docs/source/guides/includes/arch_config.yaml +++ b/docs/source/guides/includes/arch_config.yaml @@ -16,12 +16,6 @@ llm_providers: # default system prompt used by all prompt targets system_prompt: You are a network assistant that just offers facts; not advice on manufacturers or purchasing decisions. -prompt_guards: - input_guards: - jailbreak: - on_exception: - message: Looks like you're curious about my abilities, but I can only provide assistance within my programmed parameters. - prompt_targets: - name: information_extraction default: true diff --git a/docs/source/resources/includes/arch_config_full_reference_rendered.yaml b/docs/source/resources/includes/arch_config_full_reference_rendered.yaml index cc0d70f3..ad68c4ee 100644 --- a/docs/source/resources/includes/arch_config_full_reference_rendered.yaml +++ b/docs/source/resources/includes/arch_config_full_reference_rendered.yaml @@ -66,12 +66,6 @@ model_providers: provider_interface: arch overrides: prompt_target_intent_matching_threshold: 0.6 -prompt_guards: - input_guards: - jailbreak: - on_exception: - message: Looks like you're curious about my abilities, but I can only provide - assistance within my programmed parameters. prompt_targets: - auto_llm_dispatch_on_response: true default: true diff --git a/tests/archgw/arch_config.yaml b/tests/archgw/arch_config.yaml index 70a95a3e..272cac53 100644 --- a/tests/archgw/arch_config.yaml +++ b/tests/archgw/arch_config.yaml @@ -26,12 +26,6 @@ llm_providers: system_prompt: | You are a helpful assistant. -prompt_guards: - input_guards: - jailbreak: - on_exception: - message: Looks like you're curious about my abilities, but I can only provide assistance for weather forecasting. - prompt_targets: - name: get_current_weather description: Get current weather at a location.