pub struct ExecutionRequest {
pub language: ExecutionLanguage,
pub payload: ExecutionPayload,
pub argv: Vec<String>,
pub stdin: Option<Vec<u8>>,
pub input: Option<Value>,
pub sandbox: SandboxPolicy,
pub identity: Option<String>,
}Expand description
A full execution request.
Combines language, payload, sandbox policy, optional I/O, and identity into a single typed request that backends can validate and execute.
§Example
use adk_code::{ExecutionRequest, ExecutionLanguage, ExecutionPayload, SandboxPolicy};
let request = ExecutionRequest {
language: ExecutionLanguage::Rust,
payload: ExecutionPayload::Source {
code: r#"fn run(input: serde_json::Value) -> serde_json::Value { input }"#.to_string(),
},
argv: vec![],
stdin: None,
input: None,
sandbox: SandboxPolicy::strict_rust(),
identity: None,
};Fields§
§language: ExecutionLanguageThe target execution language.
payload: ExecutionPayloadThe code or module to execute.
argv: Vec<String>Command-line arguments passed to the executed program.
stdin: Option<Vec<u8>>Optional stdin bytes fed to the executed program.
input: Option<Value>Optional structured JSON input injected through a controlled harness.
sandbox: SandboxPolicyThe sandbox policy for this execution.
identity: Option<String>Optional execution identity for audit and telemetry correlation.
Trait Implementations§
Source§impl Clone for ExecutionRequest
impl Clone for ExecutionRequest
Source§fn clone(&self) -> ExecutionRequest
fn clone(&self) -> ExecutionRequest
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 moreAuto Trait Implementations§
impl Freeze for ExecutionRequest
impl RefUnwindSafe for ExecutionRequest
impl Send for ExecutionRequest
impl Sync for ExecutionRequest
impl Unpin for ExecutionRequest
impl UnsafeUnpin for ExecutionRequest
impl UnwindSafe for ExecutionRequest
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