O C R Agent Builder • Rust AI Agent SDK

OCRAgentBuilder: Builder for OCRAgent

OCRAgentBuilder

Defined in the agents module.

Rust AI Agent SDK

Builder for OCRAgent

Diagram

Input Data

Agent: OCRAgentBuilder

Output Result

Fields

NameTypeDescription
nameOption<String>–
modelOption<String>–
configOCRConfig–
verbosebool–

Methods

name

rust
fn name(mut self, name: impl Into<String>) -> Self

Set the agent name

Parameters:

NameType
nameimpl Into&lt;String&gt;

model

rust
fn model(mut self, model: impl Into<String>) -> Self

Set the model

Parameters:

NameType
modelimpl Into&lt;String&gt;

config

rust
fn config(mut self, config: OCRConfig) -> Self

Set the config

Parameters:

NameType
configOCRConfig

build

rust
fn build(self) -> Result<OCRAgent>

Build the OCRAgent

Source

View on GitHub

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


Related Documentation