pub struct OneShotRequest {Show 13 fields
pub activity_tx: Option<UnboundedSender<ActivityEvent>>,
pub attachments: Vec<TurnPromptAttachment>,
pub child_pid: Option<Arc<Mutex<Option<u32>>>>,
pub execution_policy: ExecutionPolicy,
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§
§activity_tx: Option<UnboundedSender<ActivityEvent>>Optional live activity sink, including retries and protocol repairs.
attachments: Vec<TurnPromptAttachment>Local images referenced by placeholders in prompt, sent with the
initial provider turn only; protocol repairs stay text-only.
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.
execution_policy: ExecutionPolicyResolved harness policy. The worker replaces this with its configured policy before dispatch; application callers supply the default value.
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.