pub struct WorkspaceBundle {
pub identity: Option<AgentIdentity>,
pub soul: Option<String>,
pub user: Option<String>,
pub agents: Option<String>,
pub daily_notes: Vec<DailyNote>,
pub long_term_memory: Option<String>,
pub extra_docs: Vec<(String, String)>,
}Expand description
Parsed contents of a workspace directory — everything the LLM turn needs.
Fields§
§identity: Option<AgentIdentity>§soul: Option<String>§user: Option<String>§agents: Option<String>§daily_notes: Vec<DailyNote>§long_term_memory: Option<String>§extra_docs: Vec<(String, String)>Extra rule / context MDs from AgentConfig::extra_docs. Each
entry is (filename, content); rendered as its own # RULES — <filename> block after the standard sections.
Implementations§
Source§impl WorkspaceBundle
impl WorkspaceBundle
Sourcepub fn render_system_blocks(&self) -> Option<String>
pub fn render_system_blocks(&self) -> Option<String>
Render the bundle as a set of ordered blocks suitable for prefixing
the system prompt. Each block is tagged so the model can distinguish
persona/identity from memory. Returns None when nothing was loaded.
Trait Implementations§
Source§impl Clone for WorkspaceBundle
impl Clone for WorkspaceBundle
Source§fn clone(&self) -> WorkspaceBundle
fn clone(&self) -> WorkspaceBundle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkspaceBundle
impl Debug for WorkspaceBundle
Source§impl Default for WorkspaceBundle
impl Default for WorkspaceBundle
Source§fn default() -> WorkspaceBundle
fn default() -> WorkspaceBundle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkspaceBundle
impl RefUnwindSafe for WorkspaceBundle
impl Send for WorkspaceBundle
impl Sync for WorkspaceBundle
impl Unpin for WorkspaceBundle
impl UnsafeUnpin for WorkspaceBundle
impl UnwindSafe for WorkspaceBundle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more