From 8e0c07837f0cfb7a4f1fad89c0a50b9fa41dcbfe Mon Sep 17 00:00:00 2001 From: Beatrix De Wilde <128378696+BeatrixCohere@users.noreply.github.com> Date: Tue, 11 Jun 2024 13:27:19 +0100 Subject: [PATCH] Add use agents view env variable. (#192) * Change * Format --- .env-template | 1 + src/backend/routers/experimental_features.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env-template b/.env-template index 8cd3ff05aa..254f8be291 100644 --- a/.env-template +++ b/.env-template @@ -36,6 +36,7 @@ BEDROCK_REGION_NAME= # Experimental features USE_EXPERIMENTAL_LANGCHAIN=False +USE_AGENTS_VIEW=False # Community features USE_COMMUNITY_FEATURES='True' diff --git a/src/backend/routers/experimental_features.py b/src/backend/routers/experimental_features.py index 9012f9f3e5..32b2b262bf 100644 --- a/src/backend/routers/experimental_features.py +++ b/src/backend/routers/experimental_features.py @@ -24,6 +24,7 @@ def list_experimental_features(): experimental_features = { "USE_EXPERIMENTAL_LANGCHAIN": bool( strtobool(os.getenv("USE_EXPERIMENTAL_LANGCHAIN", "false")) - ) + ), + "USE_AGENTS_VIEW": bool(strtobool(os.getenv("USE_AGENTS_VIEW", "false"))), } return experimental_features