pub struct ExecutionIdentity {
pub adk: AdkIdentity,
pub invocation_id: InvocationId,
pub branch: String,
pub agent_name: String,
}Expand description
The per-invocation execution identity, built from a stable
AdkIdentity plus invocation-scoped metadata.
This is the runtime’s internal identity capsule. It carries everything needed for event creation, telemetry correlation, and agent transfers without re-parsing raw strings.
§Examples
use adk_core::identity::{
AdkIdentity, AppName, ExecutionIdentity, InvocationId, SessionId, UserId,
};
let exec = ExecutionIdentity {
adk: AdkIdentity::new(
AppName::try_from("my-app").unwrap(),
UserId::try_from("user-1").unwrap(),
SessionId::try_from("sess-1").unwrap(),
),
invocation_id: InvocationId::generate(),
branch: String::new(),
agent_name: "root".to_string(),
};
assert_eq!(exec.adk.app_name.as_ref(), "my-app");Fields§
§adk: AdkIdentityThe stable session-scoped identity.
invocation_id: InvocationIdThe invocation identifier for this execution turn.
branch: StringThe branch name. Defaults to an empty string in phase 1.
agent_name: StringThe name of the currently executing agent.
Trait Implementations§
Source§impl Clone for ExecutionIdentity
impl Clone for ExecutionIdentity
Source§fn clone(&self) -> ExecutionIdentity
fn clone(&self) -> ExecutionIdentity
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 ExecutionIdentity
impl Debug for ExecutionIdentity
Source§impl<'de> Deserialize<'de> for ExecutionIdentity
impl<'de> Deserialize<'de> for ExecutionIdentity
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
Source§impl PartialEq for ExecutionIdentity
impl PartialEq for ExecutionIdentity
Source§impl Serialize for ExecutionIdentity
impl Serialize for ExecutionIdentity
impl Eq for ExecutionIdentity
impl StructuralPartialEq for ExecutionIdentity
Auto Trait Implementations§
impl Freeze for ExecutionIdentity
impl RefUnwindSafe for ExecutionIdentity
impl Send for ExecutionIdentity
impl Sync for ExecutionIdentity
impl Unpin for ExecutionIdentity
impl UnsafeUnpin for ExecutionIdentity
impl UnwindSafe for ExecutionIdentity
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