Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
EmbeddingAgentBuilder
Defined in the embedding module.
Rust AI Agent SDK
Builder for EmbeddingAgent.
Fields
| Name | Type | Description |
|---|
name | String | - |
model | String | - |
config | EmbeddingConfig | - |
verbose | bool | - |
Methods
new
Create a new builder
name
fn name(mut self, name: impl Into<String>) -> Self
Set agent name
Parameters:
| Name | Type |
|---|
name | impl Into<String> |
model
fn model(mut self, model: impl Into<String>) -> Self
Set model name
Parameters:
| Name | Type |
|---|
model | impl Into<String> |
config
fn config(mut self, config: EmbeddingConfig) -> Self
Set embedding config
Parameters:
| Name | Type |
|---|
config | EmbeddingConfig |
verbose
fn verbose(mut self, verbose: bool) -> Self
Set verbose mode
Parameters:
api_key
fn api_key(mut self, key: impl Into<String>) -> Self
Set API key
Parameters:
| Name | Type |
|---|
key | impl Into<String> |
api_base
fn api_base(mut self, url: impl Into<String>) -> Self
Set API base URL
Parameters:
| Name | Type |
|---|
url | impl Into<String> |
build
fn build(self) -> Result<EmbeddingAgent>
Build the EmbeddingAgent
Source
View on GitHub
praisonai/src/embedding/mod.rs at line 144