pub struct RunRequest {
pub agent_id: String,
pub thread_id: Option<String>,
pub run_id: Option<String>,
pub parent_run_id: Option<String>,
pub parent_thread_id: Option<String>,
pub resource_id: Option<String>,
pub origin: RunOrigin,
pub state: Option<Value>,
pub messages: Vec<Message>,
pub initial_decisions: Vec<ToolCallDecision>,
}Expand description
Unified runtime request for all external protocols.
Fields§
§agent_id: StringTarget agent identifier.
thread_id: Option<String>Thread (conversation) ID. None -> auto-generate.
run_id: Option<String>Run ID. None -> auto-generate.
parent_run_id: Option<String>Parent run ID for nested/delegated execution.
parent_thread_id: Option<String>Parent thread ID — set when a sub-agent is spawned by a parent agent.
resource_id: Option<String>Resource this thread belongs to (for listing/querying).
origin: RunOriginProtocol origin for run index tracking.
state: Option<Value>Frontend state snapshot.
messages: Vec<Message>Messages to append before running.
initial_decisions: Vec<ToolCallDecision>Decisions to enqueue before loop start.
Trait Implementations§
Source§impl Clone for RunRequest
impl Clone for RunRequest
Source§fn clone(&self) -> RunRequest
fn clone(&self) -> RunRequest
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 moreSource§impl Debug for RunRequest
impl Debug for RunRequest
Source§impl<'de> Deserialize<'de> for RunRequest
impl<'de> Deserialize<'de> for RunRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RunRequest
impl RefUnwindSafe for RunRequest
impl Send for RunRequest
impl Sync for RunRequest
impl Unpin for RunRequest
impl UnsafeUnpin for RunRequest
impl UnwindSafe for RunRequest
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