pub struct CliSection {Show 14 fields
pub preset: Option<CliPreset>,
pub command: Option<String>,
pub args: Option<Vec<String>>,
pub prompt_delivery: Option<PromptDelivery>,
pub prompt_flag: Option<String>,
pub model_flag: Option<String>,
pub output_format_flag: Option<String>,
pub output_format_value: Option<String>,
pub output_mode: Option<OutputMode>,
pub ndjson_match: Option<LineMatchers>,
pub system_prompt_flag: Option<String>,
pub result_json_path: Option<JsonPaths>,
pub extra_args: Option<Vec<String>>,
pub timeout_secs: Option<u64>,
}Expand description
Overrides for the spawned agent CLI ([llm.cli]).
Every key is optional and every key overrides the same field of the preset
chosen by [llm] provider (or by preset here). Omitting the whole section
— which every config written before this existed does — leaves the preset
untouched.
Fields§
§preset: Option<CliPreset>Calling convention to start from. Defaults to the one implied by
[llm] provider.
command: Option<String>Binary name or absolute path.
args: Option<Vec<String>>Fixed arguments placed before every generated flag (a subcommand, say).
prompt_delivery: Option<PromptDelivery>How the prompt reaches the CLI.
prompt_flag: Option<String>Flag carrying the prompt when prompt_delivery = "flag".
model_flag: Option<String>Flag selecting the model. Empty, or an empty model, omits it.
output_format_flag: Option<String>Flag selecting the output format. Empty omits it and its value.
output_format_value: Option<String>Value for output_format_flag. Empty passes the flag on its own, for
the CLIs whose output switch is a boolean (codex --json).
output_mode: Option<OutputMode>Shape of the CLI’s stdout. Defaults to the preset’s; setting
result_json_path on a preset that prints prose implies single-json.
ndjson_match: Option<LineMatchers>dotted.path=value predicates selecting the answer’s line under
output_mode = "ndjson".
system_prompt_flag: Option<String>Flag carrying the system prompt. Empty prepends it to the message instead — what CLIs without the concept need.
result_json_path: Option<JsonPaths>Where the answer sits in the CLI’s JSON output; empty means stdout is the answer.
extra_args: Option<Vec<String>>Arguments appended after the generated flags.
timeout_secs: Option<u64>Per-call wall-clock limit. 0 waits forever.
Implementations§
Trait Implementations§
Source§impl Clone for CliSection
impl Clone for CliSection
Source§fn clone(&self) -> CliSection
fn clone(&self) -> CliSection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CliSection
impl Debug for CliSection
Source§impl Default for CliSection
impl Default for CliSection
Source§fn default() -> CliSection
fn default() -> CliSection
Source§impl<'de> Deserialize<'de> for CliSection
impl<'de> Deserialize<'de> for CliSection
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>,
impl Eq for CliSection
Source§impl PartialEq for CliSection
impl PartialEq for CliSection
Source§impl Serialize for CliSection
impl Serialize for CliSection
impl StructuralPartialEq for CliSection
Auto Trait Implementations§
impl Freeze for CliSection
impl RefUnwindSafe for CliSection
impl Send for CliSection
impl Sync for CliSection
impl Unpin for CliSection
impl UnsafeUnpin for CliSection
impl UnwindSafe for CliSection
Blanket Implementations§
impl<T> AsyncFriendly for T
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().