Prompts
Reusable Components
AgentMark supports importing and reusing components across your prompts.
Use the import
statement to include components from other files:
example.prompt.mdx
Component Props
Components can accept props to make them more dynamic:
example.prompt.mdx
Creating Components
Components are just regular .mdx
files that can accept props:
math-instructions.mdx
:
example.prompt.mdx
Importing Plain Markdown
You can also import plain markdown files:
example.prompt.mdx
Best Practices
- Keep components focused and single-purpose
- Use meaningful component and prop names
- Consider breaking complex prompts into multiple components
Have Questions?
We’re here to help! Choose the best way to reach us:
Join our Discord community for quick answers and discussions
Email us at hello@puzzlet.ai for support
Schedule an Enterprise Demo to learn about our business solutions
Was this page helpful?