Skip to main content

FocusInput

Trait FocusInput 

Source
pub trait FocusInput {
    // Required method
    fn to_prompt(&self) -> String;
}
Expand description

Input for a Focus call — either a simple string or a structured context.

Required Methods§

Source

fn to_prompt(&self) -> String

Format the input into the user prompt text sent to the LLM.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl FocusInput for String

Source§

impl FocusInput for str

Simple case: pass a string directly.

Implementors§