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.
QueryRewriterAgentBuilder
Defined in the Specialized Agents module.
Rust AI Agent SDK
Builder for QueryRewriterAgent
Fields
| Name | Type | Description |
|---|
config | QueryRewriterConfig | - |
Methods
new
Create a new builder
name
fn name(mut self, name: impl Into<String>) -> Self
Set agent name
Parameters:
| Name | Type |
|---|
name | impl Into<String> |
model
fn model(mut self, model: impl Into<String>) -> Self
Set LLM model
Parameters:
| Name | Type |
|---|
model | impl Into<String> |
instructions
fn instructions(mut self, instructions: impl Into<String>) -> Self
Set custom instructions
Parameters:
| Name | Type |
|---|
instructions | impl Into<String> |
verbose
fn verbose(mut self) -> Self
Enable verbose output
max_queries
fn max_queries(mut self, max: usize) -> Self
Set max queries
Parameters:
abbreviation
fn abbreviation(mut self, abbrev: impl Into<String>, expansion: impl Into<String>) -> Self
Add abbreviation expansion
Parameters:
| Name | Type |
|---|
abbrev | impl Into<String> |
expansion | impl Into<String> |
abbreviations
fn abbreviations(mut self, abbrevs: HashMap<String, String>) -> Self
Set abbreviations map
Parameters:
| Name | Type |
|---|
abbrevs | HashMap<String |
temperature
fn temperature(mut self, temp: f32) -> Self
Set temperature
Parameters:
max_tokens
fn max_tokens(mut self, tokens: usize) -> Self
Set max tokens
Parameters:
build
fn build(self) -> QueryRewriterAgent
Build the agent
Source
View on GitHub
praisonai/src/specialized_agents.rs at line 648