pub enum ContextStateEvent {
ToolExecutionCompleted {
context_id: ContextId,
execution_id: McpExecutionId,
tool_name: String,
server_name: String,
output: Option<String>,
artifact: Option<Artifact>,
status: String,
timestamp: DateTime<Utc>,
},
TaskStatusChanged {
task: Task,
context_id: ContextId,
timestamp: DateTime<Utc>,
},
ArtifactCreated {
artifact: Artifact,
task_id: TaskId,
context_id: ContextId,
timestamp: DateTime<Utc>,
},
SkillLoaded {
skill_id: SkillId,
skill_name: String,
description: String,
request_context: RequestContext,
tool_name: Option<String>,
timestamp: DateTime<Utc>,
},
ContextCreated {
context_id: ContextId,
context: UserContext,
timestamp: DateTime<Utc>,
},
ContextUpdated {
context_id: ContextId,
name: String,
timestamp: DateTime<Utc>,
},
ContextDeleted {
context_id: ContextId,
timestamp: DateTime<Utc>,
},
Heartbeat {
timestamp: DateTime<Utc>,
},
CurrentAgent {
context_id: ContextId,
agent_name: Option<String>,
timestamp: DateTime<Utc>,
},
}Variants§
ToolExecutionCompleted
Fields
§
execution_id: McpExecutionIdTaskStatusChanged
ArtifactCreated
SkillLoaded
Fields
§
request_context: RequestContextContextCreated
ContextUpdated
ContextDeleted
Heartbeat
CurrentAgent
Implementations§
Trait Implementations§
Source§impl Clone for ContextStateEvent
impl Clone for ContextStateEvent
Source§fn clone(&self) -> ContextStateEvent
fn clone(&self) -> ContextStateEvent
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 ContextStateEvent
impl Debug for ContextStateEvent
Source§impl<'de> Deserialize<'de> for ContextStateEvent
impl<'de> Deserialize<'de> for ContextStateEvent
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 ContextStateEvent
impl RefUnwindSafe for ContextStateEvent
impl Send for ContextStateEvent
impl Sync for ContextStateEvent
impl Unpin for ContextStateEvent
impl UnwindSafe for ContextStateEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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