Skip to main content

WorkflowStorage

Trait WorkflowStorage 

Source
pub trait WorkflowStorage: Send + Sync {
    // Required methods
    fn insert_artifact(
        &self,
        session_id: &str,
        artifact_type: &str,
        content: &str,
        is_json: bool,
    ) -> Result<()>;
    fn get_latest_artifacts(
        &self,
        session_id: &str,
    ) -> Result<HashMap<String, String>>;
}

Required Methods§

Source

fn insert_artifact( &self, session_id: &str, artifact_type: &str, content: &str, is_json: bool, ) -> Result<()>

Source

fn get_latest_artifacts( &self, session_id: &str, ) -> Result<HashMap<String, String>>

Implementors§