How to extend constants
?
#470
Unanswered
jamesbraza
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I am wondering if Guardrails should protect _guardrails_constants = ConstantsContainer(fill="constants.xml") # ${gr.abc}
constants_extensions = ConstantsContainer() # ${ext.abc} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi james! This is a great idea, I think for now we'll say that the correct way to do this is to use 'constants'. I do like the idea of protecting the field and changing the access pattern. But I was thinking maybe we could make it part of the guard? For ex, guard.set_constants("my_prompt", "this is a prompt")
guard.load_constants("constants_file.xml") |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I figured out a way to extend
constants.xml
with `guardrails-ai==v0.2.9:Is this the "correct" way to do it? Or is there a more documented/standard method?
Beta Was this translation helpful? Give feedback.
All reactions