Access and use variables in your prompts using props.
Access variables using curly braces and the props object. Set test values for your variables in the test_settings:
Test settings are only run automatically in the VSCode extension, or AgentMark Cloud.
math-tutor.prompt.mdx
Copy
---name: math-tutortext_config: model_name: gpt-4test_settings: props: difficulty: "beginner" showSteps: true---<System>You are a math tutor.<If condition={props.showSteps}> Always show detailed steps in your explanations.</If>Explain at a {props.difficulty} level.</System>
---name: user-profiletext_config: model_name: gpt-4test_settings: props: user: name: Alice preferences: language: Spanish topics: - math - science---<System>Respond to {props.user.name} in {props.user.preferences.language} about {props.user.preferences.topics[0]}.</System>