Skip to main content

SynthesisEngine

Trait SynthesisEngine 

Source
pub trait SynthesisEngine: Send + Sync {
    // Required methods
    fn summarize_change(
        &self,
        path: &str,
        doc_type: &str,
        diff: &str,
    ) -> Result<String, String>;
    fn synthesize_context(
        &self,
        documents: &[TraceDocument],
        updates: &[String],
    ) -> Result<String, String>;
    fn update_running_summary(
        &self,
        previous: &str,
        events: &str,
        plan: &str,
    ) -> Result<String, String>;
    fn summarize_session(
        &self,
        session_id: &str,
        events: &[String],
    ) -> Result<String, String>;
    fn summarize_event_history(&self, events: &str) -> Result<String, String>;
    fn backend_label(&self) -> &str;
}
Expand description

Unified synthesis interface for trace artifacts (running summary, context, logs, recaps).

Required Methods§

Source

fn summarize_change( &self, path: &str, doc_type: &str, diff: &str, ) -> Result<String, String>

Source

fn synthesize_context( &self, documents: &[TraceDocument], updates: &[String], ) -> Result<String, String>

Source

fn update_running_summary( &self, previous: &str, events: &str, plan: &str, ) -> Result<String, String>

Source

fn summarize_session( &self, session_id: &str, events: &[String], ) -> Result<String, String>

Source

fn summarize_event_history(&self, events: &str) -> Result<String, String>

Source

fn backend_label(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§