pub struct BotConfig {
pub instructions: Option<String>,
pub skills: Option<Vec<String>>,
pub memory: Option<String>,
pub adapter: Option<String>,
}Expand description
[bots.<name>]: one named agent identity (#509).
Every key is optional, because a bot with no keys is still a bot: a session of its own, in the list, with the agent’s ordinary prompt. What each key overrides is only that bot’s run — the instructions are added to the system prompt rather than replacing it, and nothing here changes what the human’s own sessions see.
Fields§
§instructions: Option<String>The file this bot’s instructions are read from, relative to this profile’s directory unless absolute. Added to the assembled system prompt, never a replacement: the run is still the CLI/web agent with the bot’s words in front of it.
skills: Option<Vec<String>>The skills this bot may see, by name. Absent leaves every root in force; an empty list is a bot that sees none — the difference exists because “I declared nothing” and “I declared nothing for it” are not the same sentence.
memory: Option<String>Where this bot’s MEMORY.md lives, relative to this profile’s directory unless absolute.
Unset means <profile>/memory/bots/<name>/MEMORY.md, so a bot’s memory is its own file
whether or not anyone said where.
adapter: Option<String>The lane that reaches this bot. Unset means web only; telegram is slice 3 and is not
wired yet, so naming it is refused at startup rather than silently ignored.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BotConfig
impl<'de> Deserialize<'de> for BotConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for BotConfig
impl StructuralPartialEq for BotConfig
Auto Trait Implementations§
impl Forget for BotConfig
impl Freeze for BotConfig
impl Move for BotConfig
impl RefUnwindSafe for BotConfig
impl Send for BotConfigwhere
RawVecInner: Send,
impl Sync for BotConfigwhere
RawVecInner: Sync,
impl Unpin for BotConfig
impl UnsafeUnpin for BotConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for BotConfigwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.