pub struct FactoryRuntime { /* private fields */ }Expand description
Everything a tool call needs, wired to a real factory.
Owns rather than borrows, because this has to live in an HTTP handler that outlives any particular call and is shared across threads.
Implementations§
Trait Implementations§
Source§impl Runtime for FactoryRuntime
impl Runtime for FactoryRuntime
Source§fn send(
&self,
session: &Session,
to: &AgentName,
body: &str,
) -> Result<String, ToolError>
fn send( &self, session: &Session, to: &AgentName, body: &str, ) -> Result<String, ToolError>
Sends work to another agent, returning the flight’s identifier. Read more
Source§fn report(
&self,
session: &Session,
headline: &str,
body: &str,
) -> Result<(), ToolError>
fn report( &self, session: &Session, headline: &str, body: &str, ) -> Result<(), ToolError>
Records what this run concluded. Read more
Source§fn help(
&self,
session: &Session,
summary: &str,
detail: &str,
fatal: bool,
) -> Result<(), ToolError>
fn help( &self, session: &Session, summary: &str, detail: &str, fatal: bool, ) -> Result<(), ToolError>
Records that this run could not get past something. Read more
Source§fn memory_read(&self, session: &Session) -> Result<String, ToolError>
fn memory_read(&self, session: &Session) -> Result<String, ToolError>
Reads this agent’s own notes. Read more
Source§fn memory_write(&self, session: &Session, text: &str) -> Result<(), ToolError>
fn memory_write(&self, session: &Session, text: &str) -> Result<(), ToolError>
Adds to this agent’s own notes. Read more
Source§fn wait(
&self,
session: &Session,
until: &str,
because: &str,
) -> Result<String, ToolError>
fn wait( &self, session: &Session, until: &str, because: &str, ) -> Result<String, ToolError>
Sets this work down to be picked up later, returning when it will be. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for FactoryRuntime
impl !UnwindSafe for FactoryRuntime
impl Freeze for FactoryRuntime
impl Send for FactoryRuntime
impl Sync for FactoryRuntime
impl Unpin for FactoryRuntime
impl UnsafeUnpin for FactoryRuntime
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