pub struct ActorState {Show 22 fields
pub event_sender: EventSender,
pub provider: Arc<dyn AiProvider>,
pub spawn_module: Arc<SpawnModule>,
pub agent_catalog: Arc<AgentCatalog>,
pub workspace_roots: Vec<PathBuf>,
pub settings: SettingsManager,
pub steering: SteeringDocuments,
pub tracked_files: BTreeSet<PathBuf>,
pub last_command_outputs: Vec<CommandResult>,
pub session_token_usage: TokenUsage,
pub session_cost: f64,
pub profile_name: Option<String>,
pub session_id: Option<String>,
pub sessions_dir: PathBuf,
pub timing_stats: TimingStats,
pub memory_log: Arc<MemoryLog>,
pub additional_agents: Vec<Arc<dyn Agent>>,
pub tools: Vec<Arc<dyn ToolExecutor>>,
pub mcp_manager: Arc<McpModule>,
pub prompt_builder: PromptBuilder,
pub context_builder: ContextBuilder,
pub modules: Vec<Arc<dyn Module>>,
}Fields§
§event_sender: EventSender§provider: Arc<dyn AiProvider>§spawn_module: Arc<SpawnModule>§agent_catalog: Arc<AgentCatalog>§workspace_roots: Vec<PathBuf>§settings: SettingsManager§steering: SteeringDocuments§tracked_files: BTreeSet<PathBuf>§last_command_outputs: Vec<CommandResult>§session_token_usage: TokenUsage§session_cost: f64§profile_name: Option<String>§session_id: Option<String>§sessions_dir: PathBuf§timing_stats: TimingStats§memory_log: Arc<MemoryLog>§additional_agents: Vec<Arc<dyn Agent>>§tools: Vec<Arc<dyn ToolExecutor>>§mcp_manager: Arc<McpModule>§prompt_builder: PromptBuilder§context_builder: ContextBuilder§modules: Vec<Arc<dyn Module>>Implementations§
Source§impl ActorState
impl ActorState
pub fn save_session(&mut self) -> Result<()>
pub fn clear_conversation(&mut self)
pub fn transition_timing_state(&mut self, new_state: TimingState)
pub async fn reload_from_settings(&mut self) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for ActorState
impl !RefUnwindSafe for ActorState
impl !Send for ActorState
impl !Sync for ActorState
impl Unpin for ActorState
impl !UnwindSafe for ActorState
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 moreCreates a shared type from an unshared type.