object_config in frontmatter and a JSON schema for the expected output. Object prompts use the same message-role tags as text prompts.
Example configuration
example.prompt.mdx
Tags
Using schema references
Instead of writing a full schema inline, you can extract it into a.json file and use $ref to reference it. AgentMark resolves the reference at build time.
extract-event.prompt.mdx
$ref syntax, transitive references, and JSON Pointer fragments.
Available configuration
Running an object prompt
See the SDK usage section of Running prompts (under the Local tab) for the object-generation SDK code patterns: render the prompt withprompt.format(), then make your own structured-output call (generateObject / streamObject in TypeScript, the OpenAI client in Python).
Have questions?
Reach out any time:
- Email the team at hello@agentmark.co for support
- Schedule an Enterprise Demo to learn about AgentMark’s business solutions