pub struct AgentOsBuilder { /* private fields */ }Implementations§
Source§impl AgentOsBuilder
impl AgentOsBuilder
pub fn new() -> Self
pub fn with_client(self, client: Client) -> Self
pub fn with_bundle(self, bundle: Arc<dyn RegistryBundle>) -> Self
pub fn with_agent_spec(self, spec: AgentDefinitionSpec) -> Self
pub fn with_agent_specs( self, specs: impl IntoIterator<Item = AgentDefinitionSpec>, ) -> Self
pub fn with_agent_registry(self, registry: Arc<dyn AgentRegistry>) -> Self
pub fn with_agent_catalog(self, catalog: Arc<dyn AgentCatalog>) -> Self
pub fn with_tools(self, tools: HashMap<String, Arc<dyn Tool>>) -> Self
pub fn with_tool_registry(self, registry: Arc<dyn ToolRegistry>) -> Self
pub fn with_registered_behavior( self, behavior_id: impl Into<String>, behavior: Arc<dyn AgentBehavior>, ) -> Self
pub fn with_behavior_registry(self, registry: Arc<dyn BehaviorRegistry>) -> Self
pub fn with_stop_policy( self, id: impl Into<String>, policy: Arc<dyn StopPolicy>, ) -> Self
pub fn with_stop_policy_registry( self, registry: Arc<dyn StopPolicyRegistry>, ) -> Self
pub fn with_provider( self, provider_id: impl Into<String>, client: Client, ) -> Self
pub fn with_provider_registry(self, registry: Arc<dyn ProviderRegistry>) -> Self
pub fn with_model( self, model_id: impl Into<String>, def: ModelDefinition, ) -> Self
pub fn with_models(self, defs: HashMap<String, ModelDefinition>) -> Self
pub fn with_model_registry(self, registry: Arc<dyn ModelRegistry>) -> Self
pub fn with_skills(self, skills: Vec<Arc<dyn Skill>>) -> Self
pub fn with_skill_registry(self, registry: Arc<dyn SkillRegistry>) -> Self
pub fn with_skill_registry_refresh_interval(self, interval: Duration) -> Self
pub fn with_skills_config(self, cfg: SkillsConfig) -> Self
Sourcepub fn with_system_wiring(self, wiring: Arc<dyn SystemWiring>) -> Self
pub fn with_system_wiring(self, wiring: Arc<dyn SystemWiring>) -> Self
Register a SystemWiring implementation for generic extension wiring.
pub fn with_agent_tools_config(self, cfg: AgentToolsConfig) -> Self
pub fn with_agent_state_store( self, agent_state_store: Arc<dyn ThreadStore>, ) -> Self
pub fn build(self) -> Result<AgentOs, AgentOsBuildError>
Trait Implementations§
Source§impl Debug for AgentOsBuilder
impl Debug for AgentOsBuilder
Auto Trait Implementations§
impl Freeze for AgentOsBuilder
impl !RefUnwindSafe for AgentOsBuilder
impl Send for AgentOsBuilder
impl Sync for AgentOsBuilder
impl Unpin for AgentOsBuilder
impl !UnwindSafe for AgentOsBuilder
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