Skip to main content

AgentBuilder

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

Fields

Methods

new

Create a new agent builder

name

Set the agent name Parameters:

instructions

Set the system instructions Parameters:

model

Set the LLM model Parameters:

llm

Alias for model() - matches Python SDK Parameters:

api_key

Set the API key Parameters:

base_url

Set the base URL for the LLM API Parameters:

temperature

Set the temperature Parameters:

max_tokens

Set max tokens Parameters:

tool

Add a tool Parameters:

tools

Add multiple tools Parameters:

memory

Enable memory Parameters:

memory_config

Set memory configuration Parameters:

max_iterations

Set max iterations for tool calling Parameters:

verbose

Enable verbose output Parameters:

stream

Enable/disable streaming Parameters:

build

Build the agent

Usage

Source

View on GitHub

praisonai/src/agent/builder.rs at line 47

Rust Agent

Rust Overview

Rust Quickstart

Rust Installation

Rust Autonomy