pub struct SandboxArgs {
pub nodes: Option<Vec<SandboxNodeArgs>>,
pub policy: Option<String>,
pub on_error: Option<SandboxOnError>,
pub context: Option<SandboxContextArgs>,
}Expand description
Schema for run_sandbox. Typed and documented field by field so an agent
sees the exact payload shape; the tool still hands the raw JSON to the
sandbox runner, which validates (and forgives a few common variants:
query/uri aliases, JSON bodies written as objects, numeric header
values, response.status).
Fields§
§nodes: Option<Vec<SandboxNodeArgs>>Ad-hoc nodes to run in order, chained through their success ports; a
listener and client are added for you. Exclusive with policy.
policy: Option<String>Name of a stored policy to run. Exclusive with nodes.
on_error: Option<SandboxOnError>Nodes mode only: stop (default) leaves error ports unwired so a
failing node shows edge: "unhandled"; client wires them to client.
context: Option<SandboxContextArgs>The synthetic request. Every field is optional; {} is GET /.
Flat shape — do NOT nest under request (a trace snapshot’s nested
{request, response, message} object is also accepted).
Trait Implementations§
Source§impl Debug for SandboxArgs
impl Debug for SandboxArgs
Source§impl<'de> Deserialize<'de> for SandboxArgs
impl<'de> Deserialize<'de> for SandboxArgs
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>,
Source§impl JsonSchema for SandboxArgs
impl JsonSchema for SandboxArgs
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SandboxArgs
impl RefUnwindSafe for SandboxArgs
impl Send for SandboxArgs
impl Sync for SandboxArgs
impl Unpin for SandboxArgs
impl UnsafeUnpin for SandboxArgs
impl UnwindSafe for SandboxArgs
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more