pub struct LlmOptions {
pub system_prompt: Option<String>,
pub model: Option<String>,
pub thinking: Option<ThinkingConfig>,
pub max_turns: Option<i32>,
pub max_output_tokens: Option<u32>,
pub effort: Option<Effort>,
}Expand description
Minimal options for LLM proxy queries.
Only exposes fields relevant to direct LLM usage. All CC agent features (tools, hooks, plugins) are automatically disabled.
Fields§
§system_prompt: Option<String>Custom system prompt. Default: empty string (bypasses CC agent prompt).
model: Option<String>Model to use (e.g., "claude-sonnet-4-20250514"). Default: CLI default.
thinking: Option<ThinkingConfig>Thinking configuration for extended reasoning.
max_turns: Option<i32>Maximum conversation turns. Default: 1 (single-turn).
max_output_tokens: Option<u32>Maximum output tokens (1–32000).
effort: Option<Effort>Effort level for reasoning depth.
Implementations§
Source§impl LlmOptions
impl LlmOptions
Sourcepub fn builder() -> LlmOptionsBuilder
pub fn builder() -> LlmOptionsBuilder
Create a builder for LlmOptions.
Trait Implementations§
Source§impl Clone for LlmOptions
impl Clone for LlmOptions
Source§fn clone(&self) -> LlmOptions
fn clone(&self) -> LlmOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 LlmOptions
impl Debug for LlmOptions
Source§impl Default for LlmOptions
impl Default for LlmOptions
Source§fn default() -> LlmOptions
fn default() -> LlmOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LlmOptions
impl RefUnwindSafe for LlmOptions
impl Send for LlmOptions
impl Sync for LlmOptions
impl Unpin for LlmOptions
impl UnsafeUnpin for LlmOptions
impl UnwindSafe for LlmOptions
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,
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