Skip to main content

AuthProfile

Defined in the failover module.
Rust AI Agent SDK Authentication profile for an LLM provider.

Fields

Methods

new

Create a new auth profile. Parameters:

base_url

Set base URL Parameters:

model

Set default model Parameters:

priority

Set priority (lower = higher priority) Parameters:

rate_limit_rpm

Set rate limit (requests per minute) Parameters:

rate_limit_tpm

Set rate limit (tokens per minute) Parameters:

metadata

Add metadata Parameters:

is_available

Check if this profile is currently available.

mark_rate_limited

Mark this profile as rate limited. Parameters:

mark_error

Mark this profile as having an error. Parameters:

reset

Reset this profile to available status.

Source

View on GitHub

praisonai/src/failover/mod.rs at line 59

Rust Files

Rust Documents