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
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: OCRAgentBuilder"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffFields
| Name | Type | Description |
|---|---|---|
name | Option<String> | – |
model | Option<String> | – |
config | OCRConfig | – |
verbose | bool | – |
Methods
name
fn name(mut self, name: impl Into<String>) -> SelfSet the agent name
Parameters:
| Name | Type |
|---|---|
name | impl Into<String> |
model
fn model(mut self, model: impl Into<String>) -> SelfSet the model
Parameters:
| Name | Type |
|---|---|
model | impl Into<String> |
config
fn config(mut self, config: OCRConfig) -> SelfSet the config
Parameters:
| Name | Type |
|---|---|
config | OCRConfig |
build
fn build(self) -> Result<OCRAgent>Build the OCRAgent
Source
View on GitHubpraisonai/src/agents/mod.rs at line 678