pub struct LlmPromptsConfig {
pub selection: String,
pub selection_web: String,
pub selection_context: String,
pub monitor: String,
pub monitor_context: String,
pub overnight: String,
pub overnight_context: String,
}Expand description
Configurable LLM instructions per agent strategy. Empty fields use built-in defaults.
Fields§
§selection: StringSystem instructions for entry/selection phase (role, risk posture, what to optimize).
selection_web: StringOptional override when web_model is used for selection; falls back to selection.
selection_context: StringExtra strategy context prepended to the user message during selection.
monitor: StringSystem instructions for open-position monitoring phase.
monitor_context: StringExtra strategy context prepended to the user message during monitoring.
overnight: StringSystem instructions for overnight web digest (market closed).
overnight_context: StringExtra context for overnight digest user message.
Implementations§
Source§impl LlmPromptsConfig
impl LlmPromptsConfig
pub fn effective_selection_instructions(&self, use_web: bool) -> &str
pub fn effective_monitor_instructions(&self) -> &str
pub fn effective_overnight_instructions(&self) -> &str
pub fn effective_context(&self, phase: LlmPhase) -> &str
Trait Implementations§
Source§impl Clone for LlmPromptsConfig
impl Clone for LlmPromptsConfig
Source§fn clone(&self) -> LlmPromptsConfig
fn clone(&self) -> LlmPromptsConfig
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 moreSource§impl Debug for LlmPromptsConfig
impl Debug for LlmPromptsConfig
Source§impl Default for LlmPromptsConfig
impl Default for LlmPromptsConfig
Source§fn default() -> LlmPromptsConfig
fn default() -> LlmPromptsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LlmPromptsConfigwhere
LlmPromptsConfig: Default,
impl<'de> Deserialize<'de> for LlmPromptsConfigwhere
LlmPromptsConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LlmPromptsConfig
impl RefUnwindSafe for LlmPromptsConfig
impl Send for LlmPromptsConfig
impl Sync for LlmPromptsConfig
impl Unpin for LlmPromptsConfig
impl UnsafeUnpin for LlmPromptsConfig
impl UnwindSafe for LlmPromptsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more