pub struct LlmConfig {
pub enabled: bool,
pub selection_model: String,
pub monitor_model: String,
pub web_model: String,
pub model: String,
pub review_every_ticks: u64,
pub web_research_every_reviews: u64,
pub max_tokens: u32,
pub veto_entries: bool,
pub allow_llm_exits: bool,
pub prompts: LlmPromptsConfig,
}Fields§
§enabled: boolEnable OpenRouter LLM reviews during agent ticks.
selection_model: StringHigh-intelligence model for entry veto when rules produce candidate trades.
monitor_model: StringCost-efficient model for periodic open-position reviews.
web_model: StringModel with web search for macro/event context (selection phase, periodic).
model: StringLegacy fallback if selection_model / monitor_model are empty in old configs.
review_every_ticks: u64Run monitor-phase LLM every N agent ticks (selection always runs when signaled).
web_research_every_reviews: u64Use web_model every N selection/monitor LLM reviews (when applicable).
max_tokens: u32§veto_entries: boolWhen true, LLM can veto new entries when it recommends defer/skip.
allow_llm_exits: boolWhen true, high-urgency LLM close recommendations trigger exits.
prompts: LlmPromptsConfigPer-phase role, instructions, and strategy context (configurable per rules file).
Implementations§
Source§impl LlmConfig
impl LlmConfig
pub fn effective_selection_model(&self) -> &str
pub fn effective_monitor_model(&self) -> &str
Sourcepub fn resolve_model(&self, phase: LlmPhase, use_web: bool) -> &str
pub fn resolve_model(&self, phase: LlmPhase, use_web: bool) -> &str
Resolve which OpenRouter model to call for this phase.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LlmConfig
impl<'de> Deserialize<'de> for LlmConfig
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 LlmConfig
impl RefUnwindSafe for LlmConfig
impl Send for LlmConfig
impl Sync for LlmConfig
impl Unpin for LlmConfig
impl UnsafeUnpin for LlmConfig
impl UnwindSafe for LlmConfig
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