
What are AgentMark Prompts?
AgentMark prompts are.prompt.mdx files that combine the readability of Markdown with the power of JSX templating. They provide a structured, version-controllable way to define LLM prompts with type safety and reusability.
Benefits:
- Readable: Human-friendly syntax that’s easy to review and understand
- Reusable: Share components across prompts and use variables for dynamic content
- Type-Safe: Full TypeScript support for props and outputs
- Version-Controlled: Store prompts in git alongside your code
- Testable: Run experiments with datasets and automated evaluations
Basic Structure
Every AgentMark prompt consists of two parts:1. Frontmatter (YAML)
Defines the prompt’s metadata and configuration:example.prompt.mdx
2. Template Content
The actual prompt using message tags and dynamic content:Key Features
Message Tags
AgentMark provides message role tags for structuring conversations:<System>- System-level instructions<User>- User messages<Assistant>- Assistant responses (for few-shot examples)
Dynamic Variables
Access runtime data using props:Conditional Logic
Show/hide content based on conditions:Loops
Iterate over arrays to generate content:Reusable Components
Create shared components for common patterns:components/ProductList.mdx
Tools and Agents
Define tools for function calling and create multi-step agents:File Attachments
Include images and other files in prompts:Generation Types
AgentMark supports multiple output formats:- Text - Natural language responses
- Object - Structured JSON with schema validation
- Image - Image generation
- Speech - Audio generation
Next Steps
Running Prompts
Learn how to execute prompts in your application
Generation Types
Explore text, object, image, and speech generation
Tools and Agents
Build multi-step agents with function calling
Testing
Test prompts with datasets and evaluations
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 [email protected] for support
- Schedule an Enterprise Demo to learn about our business solutions