pub struct CliRequest {
pub vendor: CliVendorKind,
pub mode: RunMode,
pub prompt: String,
pub workdir: PathBuf,
pub model: Option<String>,
pub allowed_tools: Vec<String>,
pub resume_session: Option<String>,
pub project: ConceptProjection,
pub isolation: IsolationSpec,
pub budget: BudgetSpec,
pub metadata: BTreeMap<String, Value>,
}Expand description
Uniform request the harness accepts.
Fields§
§vendor: CliVendorKindWhich adapter to dispatch to.
mode: RunModeHeadless or interactive.
prompt: StringFree-text prompt fed to the CLI. For interactive runs this may be empty (the operator drives the session).
workdir: PathBufWorking directory the CLI executes against. The harness sets
this as cwd (for Local) or bind-mounts it (for Docker).
model: Option<String>Model id override (vendor-specific string). None lets the CLI
pick its own default.
allowed_tools: Vec<String>Vendor-specific allow-list of tool names. Empty = no restriction.
resume_session: Option<String>Resume an existing CLI session id if the vendor supports it.
project: ConceptProjectionConcept projection — atomr Skills/Persona/Policy/toolsets the vendor adapter materializes to on-disk config before the run.
isolation: IsolationSpecWhere the CLI runs.
budget: BudgetSpecRun budget caps.
metadata: BTreeMap<String, Value>Free-form metadata the caller can stash on the request. Echoed
back on the CliResult.
Implementations§
Source§impl CliRequest
impl CliRequest
Sourcepub fn new(
vendor: CliVendorKind,
workdir: impl Into<PathBuf>,
prompt: impl Into<String>,
) -> Self
pub fn new( vendor: CliVendorKind, workdir: impl Into<PathBuf>, prompt: impl Into<String>, ) -> Self
Shortcut for the common case.
pub fn with_mode(self, mode: RunMode) -> Self
pub fn with_model(self, model: impl Into<String>) -> Self
pub fn with_isolation(self, isolation: IsolationSpec) -> Self
pub fn with_project(self, project: ConceptProjection) -> Self
Trait Implementations§
Source§impl Clone for CliRequest
impl Clone for CliRequest
Source§fn clone(&self) -> CliRequest
fn clone(&self) -> CliRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more