AgentMark generates text with prompts that declare aDocumentation Index
Fetch the complete documentation index at: https://docs.agentmark.co/llms.txt
Use this file to discover all available pages before exploring further.
text_config in frontmatter. Text prompts use message-role tags (<System>, <User>, <Assistant>) and return a string.
Example configuration
example.prompt.mdx
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. Tools resolve from the tools passed to createAgentMarkClient. | No |
Running a text prompt
See Running prompts → Text generation for the SDK code patterns forgenerateText (TypeScript) and run_text_prompt (Python).
Have Questions?
We’re here to help! Choose the best way to reach us:
- Email us at hello@agentmark.co for support
- Schedule an Enterprise Demo to learn about our business solutions