pub struct TaskAgentContext {
pub assignment: TaskAgentAssignment,
pub id: String,
pub session_id: SessionId,
pub task_id: String,
}Expand description
Durable identity of one task’s conversation and runtime resources.
The host allocates id independently of caller-supplied task IDs and
provider conversation IDs. It remains stable across attempts and process
restarts. Provider continuation and replay history belong to this context,
never the owning session’s ordinary conversation. The session still owns
scheduling, cancellation, and the shared workspace.
Fields§
§assignment: TaskAgentAssignmentImmutable role and captured model selection.
id: StringHost-allocated stable execution identity, not a provider conversation ID.
session_id: SessionIdOwning session; task completion does not release its environment.
task_id: StringTask whose attempts may continue this context.
Implementations§
Trait Implementations§
Source§impl Clone for TaskAgentContext
impl Clone for TaskAgentContext
Source§impl Debug for TaskAgentContext
impl Debug for TaskAgentContext
impl Eq for TaskAgentContext
Source§impl PartialEq for TaskAgentContext
impl PartialEq for TaskAgentContext
impl StructuralPartialEq for TaskAgentContext
Auto Trait Implementations§
impl Forget for TaskAgentContext
impl Freeze for TaskAgentContext
impl Move for TaskAgentContext
impl RefUnwindSafe for TaskAgentContext
impl Send for TaskAgentContext
impl Sync for TaskAgentContext
impl Unpin for TaskAgentContext
impl UnsafeUnpin for TaskAgentContext
impl UnwindSafe for TaskAgentContext
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.