pub struct ChatActorBuilder { /* private fields */ }Implementations§
Source§impl ChatActorBuilder
impl ChatActorBuilder
Sourcepub fn tycode(
workspace_roots: Vec<PathBuf>,
root_dir: Option<PathBuf>,
profile: Option<String>,
) -> Result<Self>
pub fn tycode( workspace_roots: Vec<PathBuf>, root_dir: Option<PathBuf>, profile: Option<String>, ) -> Result<Self>
Create a Tycode coding agent builder with all standard setup.
This handles:
- Setting root_dir to ~/.tycode if not provided
- Creating SettingsManager with the specified profile
- Creating SteeringDocuments with settings from that profile
- Creating MemoryLog
- Creating all context managers and prompt components
After this, callers only need to set optional overrides and call build().
pub fn new(workspace_roots: Vec<PathBuf>, root_dir: PathBuf) -> Self
pub fn profile(self, name: Option<String>) -> Self
pub fn provider(self, provider: Arc<dyn AiProvider>) -> Self
pub fn agent_name(self, name: String) -> Self
pub fn with_agent(self, agent: impl Agent + 'static) -> Self
pub fn with_tool(self, tool: impl ToolExecutor + 'static) -> Self
pub fn with_prompt_component( self, component: impl PromptComponent + 'static, ) -> Self
pub fn with_context_component( self, component: impl ContextComponent + 'static, ) -> Self
pub fn with_module(&mut self, module: Arc<dyn Module>)
pub fn build(self) -> Result<(ChatActor, UnboundedReceiver<ChatEvent>)>
Auto Trait Implementations§
impl Freeze for ChatActorBuilder
impl !RefUnwindSafe for ChatActorBuilder
impl !Send for ChatActorBuilder
impl !Sync for ChatActorBuilder
impl Unpin for ChatActorBuilder
impl !UnwindSafe for ChatActorBuilder
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.