pub struct AgUiRunInput {
pub thread_id: Option<String>,
pub run_id: Option<String>,
pub parent_run_id: Option<String>,
pub state: Option<Value>,
pub messages: Vec<AgUiInputMessage>,
pub tools: Vec<Value>,
pub context: Vec<Value>,
pub forwarded_props: Option<Value>,
pub protocol_version: Option<String>,
pub resume: Option<AgUiResume>,
}Fields§
§thread_id: Option<String>§run_id: Option<String>§parent_run_id: Option<String>§state: Option<Value>§messages: Vec<AgUiInputMessage>§tools: Vec<Value>§context: Vec<Value>§forwarded_props: Option<Value>§protocol_version: Option<String>The AG-UI protocol version the client speaks, such as 1.0. A client that names 1.0
gets AG-UI 1.0’s run shape: a success outcome, snapshots before an interrupt, the
server-execution marker on tool calls, strict event fields, and a resume that must
answer every open interrupt (spec 3.3 §10 S2).
resume: Option<AgUiResume>Answers to the interrupts the previous run on the thread ended with (spec 3.3 §10
S2). A run that carries them starts no new user turn unless newMessage is set.
Trait Implementations§
Source§impl Clone for AgUiRunInput
impl Clone for AgUiRunInput
Source§impl Debug for AgUiRunInput
impl Debug for AgUiRunInput
Source§impl Default for AgUiRunInput
impl Default for AgUiRunInput
Source§impl<'de> Deserialize<'de> for AgUiRunInput
impl<'de> Deserialize<'de> for AgUiRunInput
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 Forget for AgUiRunInput
impl Freeze for AgUiRunInputwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<AgUiInputMessage>: Freeze,
PhantomData<AgUiResumeEntry>: Freeze,
impl Move for AgUiRunInput
impl RefUnwindSafe for AgUiRunInput
impl Send for AgUiRunInput
impl Sync for AgUiRunInput
impl Unpin for AgUiRunInput
impl UnsafeUnpin for AgUiRunInputwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<AgUiInputMessage>: UnsafeUnpin,
PhantomData<AgUiResumeEntry>: UnsafeUnpin,
impl UnwindSafe for AgUiRunInput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
Converts
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> ⓘ
Converts
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