pub struct PromptSpec {
pub provider: Arc<dyn LlmProvider>,
pub model: Option<String>,
pub fallback_model: String,
pub system: String,
pub render: PromptRender,
pub timeout_sec: Option<u64>,
}Expand description
Configuration for the prompt handler.
Fields§
§provider: Arc<dyn LlmProvider>§model: Option<String>None = use Self::fallback_model (the session default model).
fallback_model: StringUsed when model is None — the CLI assembly phase feeds in TurnConfig::model.
system: String§render: PromptRender§timeout_sec: Option<u64>Trait Implementations§
Source§impl Clone for PromptSpec
impl Clone for PromptSpec
Source§fn clone(&self) -> PromptSpec
fn clone(&self) -> PromptSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PromptSpec
impl !UnwindSafe for PromptSpec
impl Freeze for PromptSpec
impl Send for PromptSpec
impl Sync for PromptSpec
impl Unpin for PromptSpec
impl UnsafeUnpin for PromptSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more