Skip to main content

ToolOutputArtifactStore

Trait ToolOutputArtifactStore 

Source
pub trait ToolOutputArtifactStore: Send + Sync {
    // Required methods
    fn put<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 ToolOutputTruncationContext,
        body: String,
        original_bytes: usize,
    ) -> Pin<Box<dyn Future<Output = Result<ToolOutputArtifact, ToolError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 ToolOutputArtifactId,
        offset: usize,
        max_bytes: usize,
    ) -> Pin<Box<dyn Future<Output = Result<ToolOutputArtifactSlice, ToolError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn put<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 ToolOutputTruncationContext, body: String, original_bytes: usize, ) -> Pin<Box<dyn Future<Output = Result<ToolOutputArtifact, ToolError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn read<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 ToolOutputArtifactId, offset: usize, max_bytes: usize, ) -> Pin<Box<dyn Future<Output = Result<ToolOutputArtifactSlice, ToolError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§