pub struct AgentPackageBuilder { /* private fields */ }Implementations§
Source§impl AgentPackageBuilder
impl AgentPackageBuilder
pub fn new(id: impl Into<String>, version: impl Into<String>) -> Self
pub fn runtime_type(self, value: impl Into<String>) -> Self
pub fn system_prompt(self, value: impl Into<String>) -> Self
pub fn tool(self, value: Arc<dyn Tool>) -> Self
pub fn context_source(self, value: Arc<dyn ContextSource>) -> Self
pub fn context_hook(self, value: Arc<dyn ContextHook>) -> Self
pub fn guard(self, value: Arc<dyn Guard>) -> Self
pub fn observer(self, value: Arc<dyn Observer>) -> Self
pub fn completion_mode(self, value: CompletionMode) -> Self
pub fn build(self) -> Result<Arc<AgentPackage>, PackageBuildError>
Auto Trait Implementations§
impl !RefUnwindSafe for AgentPackageBuilder
impl !UnwindSafe for AgentPackageBuilder
impl Freeze for AgentPackageBuilder
impl Send for AgentPackageBuilder
impl Sync for AgentPackageBuilder
impl Unpin for AgentPackageBuilder
impl UnsafeUnpin for AgentPackageBuilder
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