pub struct PeerTaskRecord {Show 15 fields
pub id: String,
pub inbound: bool,
pub team: String,
pub peer: String,
pub context_id: String,
pub message_id: String,
pub state: PeerTaskState,
pub conversation: Option<ConversationKey>,
pub trace: String,
pub text: Option<String>,
pub requester: Option<UserRef>,
pub direct: bool,
pub tokens: Option<u64>,
pub created_at: Timestamp,
pub updated_at: Timestamp,
}Expand description
The work done, as a direction-tagged record kept by the store (peer_tasks).
Fields§
§id: StringThis bot’s id for the task: the A2A task id for inbound tasks, the callee’s for outbound.
inbound: boolReceived from another bot (true) or sent to one.
team: StringThe team.
peer: StringThe other member.
context_id: StringThe A2A context id.
message_id: StringThe A2A message id that created it (idempotency key, unique per team, peer and direction).
state: PeerTaskStateWhere it stands.
conversation: Option<ConversationKey>The conversation that delegated it (outbound) or that runs it (inbound).
trace: StringThe trace id of the delegation.
text: Option<String>The answer or the reason for a failure.
requester: Option<UserRef>Outbound: who asked, to bring a late result to them.
direct: boolOutbound: the conversation is a one-to-one chat.
tokens: Option<u64>Tokens the task used, once it ended.
created_at: TimestampWhen it was created.
updated_at: TimestampWhen it last changed.
Trait Implementations§
Source§impl Clone for PeerTaskRecord
impl Clone for PeerTaskRecord
Source§impl Debug for PeerTaskRecord
impl Debug for PeerTaskRecord
impl Eq for PeerTaskRecord
Source§impl PartialEq for PeerTaskRecord
impl PartialEq for PeerTaskRecord
impl StructuralPartialEq for PeerTaskRecord
Auto Trait Implementations§
impl Freeze for PeerTaskRecord
impl RefUnwindSafe for PeerTaskRecord
impl Send for PeerTaskRecord
impl Sync for PeerTaskRecord
impl Unpin for PeerTaskRecord
impl UnsafeUnpin for PeerTaskRecord
impl UnwindSafe for PeerTaskRecord
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