use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AgentHandoffStartedEvent {
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub r#type: Option<Type>,
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
#[serde(rename = "output_index", skip_serializing_if = "Option::is_none")]
pub output_index: Option<i32>,
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "previous_agent_id")]
pub previous_agent_id: String,
#[serde(rename = "previous_agent_name")]
pub previous_agent_name: String,
}
impl AgentHandoffStartedEvent {
pub fn new(id: String, previous_agent_id: String, previous_agent_name: String) -> AgentHandoffStartedEvent {
AgentHandoffStartedEvent {
r#type: None,
created_at: None,
output_index: None,
id,
previous_agent_id,
previous_agent_name,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
#[serde(rename = "agent.handoff.started")]
AgentHandoffStarted,
}
impl Default for Type {
fn default() -> Type {
Self::AgentHandoffStarted
}
}