example.prompt.mdx
---
name: example-prompt
metadata:
  model:
    name: gpt-4
    settings:
      # Basic settings
      temperature: 0.7
---

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

Key Components

1. Message Tags

AgentMark supports three primary message tags for communicating with LLMs:

  • <System> - For system-level instructions
  • <User> - For user messages
  • <Assistant> - For assistant messages

2. Frontmatter Configuration

Every prompt file includes a frontmatter section that defines:

  • Prompt name and metadata
  • Model configuration
  • 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: