Skip to main content

CodeAgentBuilder

Defined in the agents module.
Rust AI Agent SDK Builder for CodeAgent

Fields

NameTypeDescription
nameOption<String>-
modelOption<String>-
configCodeConfig-
instructionsOption<String>-
verbosebool-

Methods

name

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

model

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

config

fn config(mut self, config: CodeConfig) -> Self
Set the config Parameters:
NameType
configCodeConfig

instructions

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

build

fn build(self) -> Result<CodeAgent>
Build the CodeAgent

Source

View on GitHub

praisonai/src/agents/mod.rs at line 848