pub struct TrackedTask {
pub task_id: String,
pub tool: String,
pub function: String,
pub status: TaskStatus,
pub created_at: String,
pub expires_at: Option<String>,
pub created_by: Option<String>,
pub session_id: Option<String>,
}Expand description
A tracked async MCP task for lifecycle management.
Vellaveto tracks task state to enforce policies on:
- Maximum concurrent tasks per session/agent
- Task duration limits
- Cancellation authorization (self-cancel only vs. any agent)
Fields§
§task_id: StringUnique task identifier from the MCP server.
tool: StringTool that created this task.
function: StringFunction that created this task.
status: TaskStatusCurrent task status.
created_at: StringISO 8601 timestamp when the task was created.
expires_at: Option<String>ISO 8601 timestamp when the task expires (if set).
created_by: Option<String>Agent ID that created this task (for cancellation authorization).
session_id: Option<String>Session ID this task belongs to.
Implementations§
Source§impl TrackedTask
impl TrackedTask
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Returns true if the task is in a terminal state.
Trait Implementations§
Source§impl Clone for TrackedTask
impl Clone for TrackedTask
Source§impl Debug for TrackedTask
impl Debug for TrackedTask
Source§impl<'de> Deserialize<'de> for TrackedTask
impl<'de> Deserialize<'de> for TrackedTask
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 TrackedTask
impl PartialEq for TrackedTask
Source§impl Serialize for TrackedTask
impl Serialize for TrackedTask
impl StructuralPartialEq for TrackedTask
Auto Trait Implementations§
impl Forget for TrackedTask
impl Freeze for TrackedTask
impl Move for TrackedTask
impl RefUnwindSafe for TrackedTask
impl Send for TrackedTask
impl Sync for TrackedTask
impl Unpin for TrackedTask
impl UnsafeUnpin for TrackedTask
impl UnwindSafe for TrackedTask
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