pub struct InvokeRequest {
pub action: String,
pub input: Vec<u8>,
pub pixie_max: u64,
}Expand description
What the guest sends to circlet.invoke: run another action and give me
its output.
action is an open string. Circlet never learns what an action id
means — it checks the id against the grant’s allowlist and hands the
request to the embedder, which is the only side that can resolve an id
to something runnable. Depth and cycles are the embedder’s policy too:
it builds the sub-cast’s grant, so it decides whether that grant may
invoke anything at all.
pixie_max is reserved from the caller’s grant BEFORE the sub-cast
runs, gas-style, exactly like FetchRequest::price_max: a call the
grant cannot pay for is never made, so composition never breaks a quote.
Fields§
§action: StringThe action to run, in whatever id space the embedder uses.
input: Vec<u8>The input bytes for it — opaque, exactly like a cast’s own input.
pixie_max: u64The ceiling this invocation may spend, in pixie, reserved up front.