pub struct OneShotRequest {
pub child_pid: Option<Arc<Mutex<Option<u32>>>>,
pub folder: PathBuf,
pub harness: String,
pub model: String,
pub permission_mode: PermissionMode,
pub prompt: String,
pub provider_call_budget: Option<ProviderCallBudget>,
pub reasoning_level: ReasoningLevel,
pub request_kind: AgentRequestKind,
pub speed_mode: SpeedMode,
}Expand description
Input payload for one isolated prompt that prefers structured protocol output.
Fields§
§child_pid: Option<Arc<Mutex<Option<u32>>>>Optional PID slot for resource accounting while a prompt is running. Subprocess lifetime and cancellation belong to the runtime adapter.
folder: PathBufWorking directory where the prompt command runs.
harness: StringHarness identifier resolved by the host-selected runtime implementation.
model: StringProvider-specific model used for command construction and parsing.
permission_mode: PermissionModeFilesystem and command permission policy for this isolated prompt.
prompt: StringPrompt text submitted to the agent.
provider_call_budget: Option<ProviderCallBudget>Optional shared limit, charged for every provider turn including repairs.
reasoning_level: ReasoningLevelReasoning effort preference for the one-shot prompt.
request_kind: AgentRequestKindCanonical request kind for this isolated prompt.
speed_mode: SpeedModeResponse-speed preference for the one-shot prompt.
Trait Implementations§
Source§impl Clone for OneShotRequest
impl Clone for OneShotRequest
Source§fn clone(&self) -> OneShotRequest
fn clone(&self) -> OneShotRequest
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 moreAuto Trait Implementations§
impl Freeze for OneShotRequest
impl RefUnwindSafe for OneShotRequest
impl Send for OneShotRequest
impl Sync for OneShotRequest
impl Unpin for OneShotRequest
impl UnsafeUnpin for OneShotRequest
impl UnwindSafe for OneShotRequest
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