Replies: 2 comments
-
|
Agenta doesn't support setting default values for prompt variables directly in the prompt template using syntax like If you want to set default values for variables, you need to do this through the configuration or schema for your prompt variant—defaults are managed outside the prompt text, typically in the UI or config panels where you define input keys and their defaults. The codebase confirms this separation between prompt text and variable defaults, so inline defaults in the template aren't currently supported. For more details, see the relevant code handling variable extraction and input initialization here. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
Hello @vjeantet, Defaults for variables are not part of the prompt configuration for the moment. You would need to handle them form your side in the code. Can you please tel us more about your use case, that would help us consider solutions for future releases |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
How can we set a default value when we insert variable in the prompt ?
Something like
{{country:France}}?Beta Was this translation helpful? Give feedback.
All reactions