pub struct AgentRunRequest {
pub app_name: Option<String>,
pub user_id: String,
pub session_id: String,
pub new_message: Content,
pub streaming: bool,
pub state_delta: Option<Map<String, Value>>,
}Expand description
The ADK AgentRunRequest carried inside
StreamingAgentRunWithEventsInput::request_json.
google-adk’s model accepts both snake_case field names and camelCase
aliases (populate_by_name=True); the serde aliases mirror that.
Fields§
§app_name: Option<String>Application name; accepted for wire parity. The runner’s own app name governs session scoping, so a mismatched value is not an error.
user_id: StringSession owner.
session_id: StringSession to run in; created when it does not exist.
new_message: ContentThe user message.
streaming: boolAccepted for wire parity; HTTP framing (unary vs streaming endpoint) decides the response shape, not this flag.
state_delta: Option<Map<String, Value>>Optional state delta applied to the session before the run.
Trait Implementations§
Source§impl Debug for AgentRunRequest
impl Debug for AgentRunRequest
Source§impl<'de> Deserialize<'de> for AgentRunRequest
impl<'de> Deserialize<'de> for AgentRunRequest
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 AgentRunRequest
impl Freeze for AgentRunRequestwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Part>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for AgentRunRequest
impl RefUnwindSafe for AgentRunRequest
impl Send for AgentRunRequest
impl Sync for AgentRunRequest
impl Unpin for AgentRunRequest
impl UnsafeUnpin for AgentRunRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Part>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for AgentRunRequest
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
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