pub struct AgentActivity {
pub id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub archived_at: Option<DateTime<Utc>>,
pub agent_session: Option<Box<AgentSession>>,
pub source_comment: Option<Box<Comment>>,
pub user: Option<Box<User>>,
pub source_metadata: Option<Value>,
pub signal: Option<AgentActivitySignal>,
pub signal_metadata: Option<Value>,
pub ephemeral: Option<bool>,
pub contextual_metadata: Option<Value>,
}Expand description
An activity within an agent context.
Fields§
§id: Option<String>The unique identifier of the entity.
created_at: Option<DateTime<Utc>>The time at which the entity was created.
updated_at: Option<DateTime<Utc>>The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn’t been updated after creation.
archived_at: Option<DateTime<Utc>>The time at which the entity was archived. Null if the entity has not been archived.
agent_session: Option<Box<AgentSession>>The agent session this activity belongs to.
source_comment: Option<Box<Comment>>The comment this activity is linked to.
user: Option<Box<User>>The user who created this agent activity.
source_metadata: Option<Value>Metadata about the external source that created this agent activity.
signal: Option<AgentActivitySignal>An optional modifier that provides additional instructions on how the activity should be interpreted.
signal_metadata: Option<Value>Metadata about this agent activity’s signal.
ephemeral: Option<bool>Whether the activity is ephemeral, and should disappear after the next agent activity.
contextual_metadata: Option<Value>Internal Metadata about user-provided contextual information for this agent activity.
Trait Implementations§
Source§impl Clone for AgentActivity
impl Clone for AgentActivity
Source§fn clone(&self) -> AgentActivity
fn clone(&self) -> AgentActivity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more