Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
TemplateConfig
Defined in the config module.
Rust AI Agent SDK
Configuration for prompt templates
Fields
| Name | Type | Description |
|---|
system | Option<String> | System template |
prompt | Option<String> | Prompt template |
response | Option<String> | Response template |
use_system_prompt | bool | Use system prompt |
Methods
new
Create a new template config
system
fn system(mut self, template: impl Into<String>) -> Self
Set system template
Parameters:
| Name | Type |
|---|
template | impl Into<String> |
prompt
fn prompt(mut self, template: impl Into<String>) -> Self
Set prompt template
Parameters:
| Name | Type |
|---|
template | impl Into<String> |
response
fn response(mut self, template: impl Into<String>) -> Self
Set response template
Parameters:
| Name | Type |
|---|
template | impl Into<String> |
no_system_prompt
fn no_system_prompt(mut self) -> Self
Disable system prompt
Source
View on GitHub
praisonai/src/config.rs at line 915