From f7466eaa349acb6455e968fbbcb14e02a3bf0c6d Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Fri, 26 Jul 2024 14:48:28 -0500 Subject: [PATCH] pass prompt, instructions, and msg_history to server --- guardrails/async_guard.py | 3 +++ guardrails/guard.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/guardrails/async_guard.py b/guardrails/async_guard.py index 0b824fa70..f74cca056 100644 --- a/guardrails/async_guard.py +++ b/guardrails/async_guard.py @@ -292,6 +292,9 @@ async def __exec( prompt_params=prompt_params, metadata=metadata, full_schema_reask=full_schema_reask, + prompt=prompt, + instructions=instructions, + msg_history=msg_history, *args, **kwargs, ) diff --git a/guardrails/guard.py b/guardrails/guard.py index e37e130d2..2cbdb50f3 100644 --- a/guardrails/guard.py +++ b/guardrails/guard.py @@ -737,6 +737,9 @@ def __exec( prompt_params=prompt_params, metadata=metadata, full_schema_reask=full_schema_reask, + prompt=prompt, + instructions=instructions, + msg_history=msg_history, *args, **kwargs, )