Create a new builder with required fields.
(session_id: impl Into<String>, agent_name: impl Into<String>)
| 456 | impl SessionEnvelopeBuilder { |
| 457 | /// Create a new builder with required fields. |
| 458 | pub fn new(session_id: impl Into<String>, agent_name: impl Into<String>) -> Self { |
| 459 | Self { |
| 460 | session_id: session_id.into(), |
| 461 | agent_name: agent_name.into(), |
| 462 | agent_display_name: None, |
| 463 | turn_number: 1, |
| 464 | total_turns: None, |
| 465 | session_started_at: 0, |
| 466 | turn_started_at: 0, |
| 467 | turn_ended_at: 0, |
| 468 | turn_duration_ms: 0, |
| 469 | prompt_summary: None, |
| 470 | prompt_hash: None, |
| 471 | files_in_turn: Vec::new(), |
| 472 | files_in_session: 0, |
| 473 | delegation_id: None, |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | /// Set the human-readable agent display name. |
| 478 | #[must_use] |
nothing calls this directly
no outgoing calls
no test coverage detected