Generation Types
Generating Text
Agentmark supports generating text using text prompts. Text prompts are defined by specifying text_config
in the text prompt’s frontmatter.
Example Configuration
example.prompt.mdx
Tags
Tag | Description |
---|---|
<System> | System-level instructions |
<User> | User message |
<Assistant> | Assistant message |
Available Configuration
Property | Type | Description | Optional/Required |
---|---|---|---|
model_name | string | The name of the model to use for text generation. | Required |
max_tokens | number | Maximum number of tokens to generate. | Optional |
temperature | number | Controls the randomness of the output; higher values result in more random outputs. | Optional |
max_calls | number | Maximum number of LLM calls allowed. | Optional |
top_p | number | Controls the cumulative probability for nucleus sampling. | Optional |
top_k | number | Limits the next token selection to the top k tokens. | Optional |
presence_penalty | number | Penalizes new tokens based on their presence in the text so far, encouraging the model to discuss new topics. | Optional |
frequency_penalty | number | Penalizes new tokens based on their frequency in the text so far, reducing the likelihood of repeating the same line verbatim. | Optional |
stop_sequences | string[] | Array of strings where the generation will stop if any of the strings are encountered. | Optional |
seed | number | Seed value for random number generation, ensuring reproducibility. | Optional |
max_retries | number | Maximum number of retries for the request in case of failures. | Optional |
tool_choice | "auto" | "none" | "required" | { type: "tool", tool_name: string } | Controls how tools are used in the generation process. | Optional |
tools | Record<string, { description: string, parameters: JSONSchema }> | Defines available tools and their parameters for the model to use. | Optional |
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@agentmark.co for support
Schedule an Enterprise Demo to learn about our business solutions