pub struct ScriptRequest {
pub script: Script,
pub messages: Vec<Message>,
pub agent_instance_hierarchy: String,
pub agent_id: String,
pub agent_full_id: String,
pub agent_remote: Option<String>,
pub response_id: String,
pub response_ids: Option<String>,
}Expand description
Parameters for Payload::Script.
The identity fields mirror the MCP path’s transient headers, but
TYPED (the non-MCP convention — cf. ReadMessageQueueRequest’s
agent_instance_hierarchy): the CLI applies them to the script’s
execution context, so anything the script runs via
objectiveai.execute uses the calling agent’s identity.
Fields§
§script: ScriptThe code to run — the agent’s type-tagged script definition
({"type":"python","python":"…"}).
messages: Vec<Message>The FULL conversation the script receives as its input: the request messages plus everything the continuation carries, in order.
agent_instance_hierarchy: StringFull slash-separated lineage of the agent running this script.
agent_id: StringLeaf agent id of the attempt running this script.
agent_full_id: StringWF-level id: the primary agent’s id concatenated with all fallback ids.
agent_remote: Option<String>JSON-encoded RemotePath the agent was fetched from; None
when the agent was supplied inline.
response_id: StringThe objectiveai response id of this agent run.
response_ids: Option<String>The dash-joined sibling response-id group, when known. None
⇒ the execution context carries no group.
Trait Implementations§
Source§impl Clone for ScriptRequest
impl Clone for ScriptRequest
Source§fn clone(&self) -> ScriptRequest
fn clone(&self) -> ScriptRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScriptRequest
impl Debug for ScriptRequest
Source§impl<'de> Deserialize<'de> for ScriptRequest
impl<'de> Deserialize<'de> for ScriptRequest
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 ScriptRequest
impl JsonSchema for ScriptRequest
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 ScriptRequest
impl RefUnwindSafe for ScriptRequest
impl Send for ScriptRequest
impl Sync for ScriptRequest
impl Unpin for ScriptRequest
impl UnsafeUnpin for ScriptRequest
impl UnwindSafe for ScriptRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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