pub struct ExecutionMetadata {
pub context_id: ContextId,
pub trace_id: TraceId,
pub session_id: SessionId,
pub user_id: UserId,
pub agent_name: AgentName,
pub timestamp: DateTime<Utc>,
pub task_id: Option<TaskId>,
pub tool_name: Option<String>,
pub skill_id: Option<SkillId>,
pub skill_name: Option<String>,
pub execution_id: Option<String>,
}Fields§
§context_id: ContextId§trace_id: TraceId§session_id: SessionId§user_id: UserId§agent_name: AgentName§timestamp: DateTime<Utc>§task_id: Option<TaskId>§tool_name: Option<String>§skill_id: Option<SkillId>§skill_name: Option<String>§execution_id: Option<String>Implementations§
Source§impl ExecutionMetadata
impl ExecutionMetadata
pub fn builder(ctx: &RequestContext) -> ExecutionMetadataBuilder
pub fn with_request(ctx: &RequestContext) -> Self
pub fn with_tool(self, name: impl Into<String>) -> Self
pub fn with_skill(self, id: impl Into<String>, name: impl Into<String>) -> Self
pub fn with_execution(self, id: impl Into<String>) -> Self
pub fn schema() -> JsonValue
pub fn to_meta(&self) -> Option<Meta>
Trait Implementations§
Source§impl Clone for ExecutionMetadata
impl Clone for ExecutionMetadata
Source§fn clone(&self) -> ExecutionMetadata
fn clone(&self) -> ExecutionMetadata
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 ExecutionMetadata
impl Debug for ExecutionMetadata
Source§impl Default for ExecutionMetadata
impl Default for ExecutionMetadata
Source§impl<'de> Deserialize<'de> for ExecutionMetadata
impl<'de> Deserialize<'de> for ExecutionMetadata
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 JsonSchema for ExecutionMetadata
impl JsonSchema for ExecutionMetadata
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ExecutionMetadata
impl RefUnwindSafe for ExecutionMetadata
impl Send for ExecutionMetadata
impl Sync for ExecutionMetadata
impl Unpin for ExecutionMetadata
impl UnwindSafe for ExecutionMetadata
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