API
Utilities
Helper functions for working with AgentMark prompts
AgentMark provides utility functions for working with prompts and frontmatter.
Serialization
serialize(completionParams, name)
Converts model completion parameters into AgentMark mdx format.
TypeScript
deserialize(prompt, props)
Converts AgentMark MDX content back into model completion parameters.
Frontmatter
getFrontMatter(prompt)
Extracts frontmatter metadata from an AgentMark prompt.
Returns an object containing the frontmatter section.
The frontmatter contains:
name
: Prompt identifiermetadata
: Model configuration and settingstest_settings
: (Optional) Test configuration
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@puzzlet.ai for support
Schedule an Enterprise Demo to learn about our business solutions
Was this page helpful?