Skip to main content

PromptExpanderAgentBuilder

Defined in the Specialized Agents module.
Rust AI Agent SDK Builder for PromptExpanderAgent

Fields

NameTypeDescription
configPromptExpanderConfig-

Methods

new

fn new() -> Self
Create a new builder

name

fn name(mut self, name: impl Into<String>) -> Self
Set agent name Parameters:
NameType
nameimpl Into&lt;String&gt;

model

fn model(mut self, model: impl Into<String>) -> Self
Set LLM model Parameters:
NameType
modelimpl Into&lt;String&gt;

instructions

fn instructions(mut self, instructions: impl Into<String>) -> Self
Set custom instructions Parameters:
NameType
instructionsimpl Into&lt;String&gt;

verbose

fn verbose(mut self) -> Self
Enable verbose output

temperature

fn temperature(mut self, temp: f32) -> Self
Set temperature Parameters:
NameType
tempf32

max_tokens

fn max_tokens(mut self, tokens: usize) -> Self
Set max tokens Parameters:
NameType
tokensusize

build

fn build(self) -> PromptExpanderAgent
Build the agent

Source

View on GitHub

praisonai/src/specialized_agents.rs at line 224