AgentMark Syntax
Learn the core syntax and features of AgentMark
AgentMark combines markdown-like syntax with JSX components to create powerful, dynamic prompts. It provides a flexible way to structure prompts while supporting advanced features like conditionals, loops, and dynamic content.
Basic Structure
AgentMark files (.prompt.mdx
) can be configured for multiple generation types. Read more about generation types.
Here’s an example of a text generation prompt:
Here’s an example of an object generation prompt:
Dynamic Content
Props and Variables
Access variables using the props
object:
Learn more about using props.
Conditional Logic
Use <If>
, <ElseIf>
, and <Else>
for dynamic content:
Learn more about conditionals.
Loops
Iterate over arrays using <ForEach>
:
Learn more about loops.
Tools and Agents
Extend functionality with custom tools:
Learn more about tools and agents.
Reusable Components
Import and reuse prompt components:
Learn more about reusable components.
Filter Functions
Transform values using built-in or custom filters:
Learn more about filter functions.
File Attachments
Include files and images in your prompts:
Learn more about file attachments.
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@agentmark.co for support
Schedule an Enterprise Demo to learn about our business solutions