text_config in frontmatter. Text prompts use message-role tags (<System>, <User>, <Assistant>) and return a string.
Example configuration
example.prompt.mdx
model_name in the provider-prefixed form, such as openai/gpt-5-mini. The value is a free-form string that AgentMark passes through to your call site unchanged, which is why the Running prompts examples strip the openai/ prefix before constructing the provider model.
Tags
| Tag | Description |
|---|---|
<System> | System-level instructions |
<User> | User message |
<Assistant> | Assistant message (optional; include for few-shot examples or prior-turn context) |
Available configuration
| Property | Type | Description | Required |
|---|---|---|---|
model_name | string | The name of the model to use for text generation. | Yes |
max_tokens | number | Maximum number of tokens to generate. | No |
temperature | number | Controls the randomness of the output; higher values are more random. | No |
max_calls | number | Maximum number of LLM calls allowed (for agent workflows). | No |
top_p | number | Cumulative probability for nucleus sampling. | No |
top_k | number | Limits next-token selection to the top k tokens. | No |
presence_penalty | number | Penalizes tokens based on presence in the text so far, encouraging new topics. | No |
frequency_penalty | number | Penalizes tokens based on frequency in the text so far, reducing verbatim repetition. | No |
stop_sequences | string[] | Strings that, if encountered, stop generation. | No |
seed | number | Random-number seed for reproducibility. | No |
max_retries | number | Maximum number of retries on failure. | No |
tool_choice | "auto" | "none" | "required" | { type: "tool", tool_name: string } | Controls how tools are used during generation. | No |
tools | string[] | List of tool names or MCP URIs available to the model. You resolve these names to implementations at your call site (see Tools and agents). | No |
Running a text prompt
See Running prompts → Text generation for the SDK code patterns: render the prompt withprompt.format(), then make your own model call (generateText in TypeScript, the OpenAI client in Python).
Have questions?
Reach out any time:
- Email us at hello@agentmark.co for support
- Schedule an Enterprise Demo to learn about our business solutions