pub struct BotSpec { /* private fields */ }Expand description
Options for creating or updating a bot.
Implementations§
Source§impl BotSpec
impl BotSpec
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
A spec for a bot named name with the server defaults.
Sourcepub fn host_ref(self, v: impl Into<String>) -> Self
pub fn host_ref(self, v: impl Into<String>) -> Self
HostRef::LOCAL (default), a host id, or HostRef::AUTO.
Sourcepub fn container(self, v: ContainerProfile) -> Self
pub fn container(self, v: ContainerProfile) -> Self
Run the bot’s shell commands in a Docker container.
pub fn role(self, v: impl Into<String>) -> Self
pub fn description(self, v: impl Into<String>) -> Self
pub fn persona(self, v: impl Into<String>) -> Self
pub fn color(self, v: impl Into<String>) -> Self
Sourcepub fn model(self, v: impl Into<String>) -> Self
pub fn model(self, v: impl Into<String>) -> Self
ModelRef::DEFAULT, ModelRef::of or a profile name.
pub fn kernel_functions(self, v: impl IntoIterator<Item = KernelPack>) -> Self
pub fn skills(self, v: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn mcp_servers(self, v: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn permission_profile(self, v: PermissionProfile) -> Self
pub fn auto_learn(self, v: AutoLearnMode) -> Self
pub fn memory(self, short_term: bool, long_term: bool) -> Self
pub fn max_steps(self, v: u32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BotSpec
impl RefUnwindSafe for BotSpec
impl Send for BotSpec
impl Sync for BotSpec
impl Unpin for BotSpec
impl UnsafeUnpin for BotSpec
impl UnwindSafe for BotSpec
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