pub struct AgentRuntimeFactory {
pub config: Config,
pub working_dir: PathBuf,
pub telemetry: Arc<Telemetry>,
pub lsp: Option<Arc<LspManager>>,
pub shared_tools: Arc<ToolRegistry>,
pub skill_registry: Arc<RwLock<SkillRegistry>>,
pub max_turns: Option<usize>,
/* private fields */
}Fields§
§config: Config§working_dir: PathBuf§telemetry: Arc<Telemetry>§lsp: Option<Arc<LspManager>>§skill_registry: Arc<RwLock<SkillRegistry>>§max_turns: Option<usize>Implementations§
Source§impl AgentRuntimeFactory
impl AgentRuntimeFactory
pub fn set_config(&mut self, config: Config)
pub fn set_working_dir(&mut self, working_dir: PathBuf)
pub fn build_provider(&self) -> Box<dyn LlmProvider>
pub fn spawn_runtime( &self, conversation: Conversation, ) -> (AgentClient, UnboundedReceiver<AgentEvent>)
pub fn from_initial_loop( agent_loop: &AgentLoop, max_turns: Option<usize>, ) -> Self
pub fn new_for_test( config: Config, working_dir: PathBuf, shared_tools: Arc<ToolRegistry>, skill_registry: Arc<RwLock<SkillRegistry>>, ) -> Self
Trait Implementations§
Source§impl Clone for AgentRuntimeFactory
impl Clone for AgentRuntimeFactory
Source§fn clone(&self) -> AgentRuntimeFactory
fn clone(&self) -> AgentRuntimeFactory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgentRuntimeFactory
impl !RefUnwindSafe for AgentRuntimeFactory
impl Send for AgentRuntimeFactory
impl Sync for AgentRuntimeFactory
impl Unpin for AgentRuntimeFactory
impl UnsafeUnpin for AgentRuntimeFactory
impl !UnwindSafe for AgentRuntimeFactory
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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