pub struct AgentClientConfig {
pub stakpak: Option<StakpakConfig>,
pub providers: LLMProviderConfig,
pub smart_model: Option<String>,
pub eco_model: Option<String>,
pub recovery_model: Option<String>,
pub store_path: Option<String>,
pub hook_registry: Option<HookRegistry<AgentState>>,
}Expand description
Configuration for creating an AgentClient
Fields§
§stakpak: Option<StakpakConfig>Stakpak configuration (optional - enables remote features when present)
providers: LLMProviderConfigLLM provider configurations
smart_model: Option<String>Smart model override
eco_model: Option<String>Eco model override
recovery_model: Option<String>Recovery model override
store_path: Option<String>Local database path (default: ~/.stakpak/data/local.db)
hook_registry: Option<HookRegistry<AgentState>>Hook registry for lifecycle events
Implementations§
Source§impl AgentClientConfig
impl AgentClientConfig
Sourcepub fn with_stakpak(self, config: StakpakConfig) -> Self
pub fn with_stakpak(self, config: StakpakConfig) -> Self
Set Stakpak configuration
Use StakpakConfig::new(api_key).with_endpoint(endpoint) to configure.
Sourcepub fn with_providers(self, providers: LLMProviderConfig) -> Self
pub fn with_providers(self, providers: LLMProviderConfig) -> Self
Set providers
Sourcepub fn with_smart_model(self, model: impl Into<String>) -> Self
pub fn with_smart_model(self, model: impl Into<String>) -> Self
Set smart model
Sourcepub fn with_eco_model(self, model: impl Into<String>) -> Self
pub fn with_eco_model(self, model: impl Into<String>) -> Self
Set eco model
Sourcepub fn with_recovery_model(self, model: impl Into<String>) -> Self
pub fn with_recovery_model(self, model: impl Into<String>) -> Self
Set recovery model
Sourcepub fn with_store_path(self, path: impl Into<String>) -> Self
pub fn with_store_path(self, path: impl Into<String>) -> Self
Set local database path
Sourcepub fn with_hook_registry(self, registry: HookRegistry<AgentState>) -> Self
pub fn with_hook_registry(self, registry: HookRegistry<AgentState>) -> Self
Set hook registry
Trait Implementations§
Source§impl Debug for AgentClientConfig
impl Debug for AgentClientConfig
Source§impl Default for AgentClientConfig
impl Default for AgentClientConfig
Source§fn default() -> AgentClientConfig
fn default() -> AgentClientConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentClientConfig
impl !RefUnwindSafe for AgentClientConfig
impl Send for AgentClientConfig
impl Sync for AgentClientConfig
impl Unpin for AgentClientConfig
impl !UnwindSafe for AgentClientConfig
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request