pub trait Translator: Send + Sync {
// Required method
fn to_prompt_context(&self, snapshot: &StateSnapshot) -> PromptContext;
}Expand description
Trait for translating state snapshots to prompt context.
Required Methods§
Sourcefn to_prompt_context(&self, snapshot: &StateSnapshot) -> PromptContext
fn to_prompt_context(&self, snapshot: &StateSnapshot) -> PromptContext
Translate a state snapshot into prompt context.