pub struct InitOptions {
pub providers: Vec<String>,
pub api_keys: HashMap<String, String>,
pub custom_providers: Vec<CustomProviderInit>,
pub listen_addr: Option<SocketAddr>,
pub home_dir: PathBuf,
pub wallet_name: String,
pub use_default_models: bool,
pub tool_providers: Vec<ToolProviderInit>,
pub use_default_tools: bool,
}Expand description
Options for generating config files.
Fields§
§providers: Vec<String>Provider names to enable (e.g. ["openai", "anthropic"]).
api_keys: HashMap<String, String>API keys keyed by provider name.
custom_providers: Vec<CustomProviderInit>Custom provider definitions (name → config).
These use derives and a custom api_base.
listen_addr: Option<SocketAddr>Server listen address (uses default if None).
home_dir: PathBufHome directory to write into.
wallet_name: StringOWS wallet name — the identity and trust root for auth, spend tracking, and API key management.
use_default_models: boolWhen true, the user chose BitRouter Cloud as their model
provider. No API keys are needed; the wallet handles billing.
tool_providers: Vec<ToolProviderInit>Custom tool provider definitions added during onboarding (e.g. user-supplied MCP server URLs).
use_default_tools: boolWhen true, the user chose BitRouter Cloud as their tool provider.
Auto Trait Implementations§
impl Freeze for InitOptions
impl RefUnwindSafe for InitOptions
impl Send for InitOptions
impl Sync for InitOptions
impl Unpin for InitOptions
impl UnsafeUnpin for InitOptions
impl UnwindSafe for InitOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more