example.prompt.mdx
---
name: example
text_config:
  model_name: gpt-4
  temperature: 0.7
---

<System>You are a math tutor that can perform calculations.</System>
<User>What's 235 * {props.num}?</User>
<Assistant>The result is 4230</Assistant>

Key Components

1. Message Tags

AgentMark supports different message tags for different types of content. See Generation Types for more information.

2. Frontmatter Configuration

Every prompt file includes a frontmatter section that defines:

  • Prompt name
  • Prompt configuration. See Generation Types for more information.
  • Optional test props/settings

3. Dynamic Content

Prompts can include:

  • Variables using {props.varName}
  • Imported components
  • Conditional logic and loops
  • Filter functions

Have Questions?

We’re here to help! Choose the best way to reach us: