Skip to main content

Crate tokn_accounts

Crate tokn_accounts 

Source
Expand description

Account management and request routing.

pool owns provider-bucketed account acquisition; affinity keeps session ids pinned to accounts across related requests; routing resolves a requested model into a route mode + upstream selector for the pool to consume.

Re-exports§

pub use inventory::AccountInventory;
pub use inventory::AccountPoolRuleset;
pub use routing::ResolveError;
pub use routing::RouteResolution;
pub use routing::RouteResolver;
pub use routing::RouteSelector;

Modules§

affinity
Session → account affinity map used by super::AccountPool to keep multi-turn conversations (tool-call follow-ups, OpenAI Responses previous_response_id, Anthropic extended-thinking continuations) on the same upstream credential.
inventory
registry
routing

Structs§

AccountHandle
AccountPool

Enums§

EndpointAcquire
Error
Errors that can occur while constructing or querying an AccountPool.
SessionAcquire

Type Aliases§

Result