Build the `SessionEnvelope`.
(self)
| 568 | |
| 569 | /// Build the `SessionEnvelope`. |
| 570 | pub fn build(self) -> SessionEnvelope { |
| 571 | SessionEnvelope { |
| 572 | schema_version: SCHEMA_VERSION, |
| 573 | session_id: self.session_id, |
| 574 | agent_name: self.agent_name, |
| 575 | agent_display_name: self.agent_display_name, |
| 576 | turn_number: self.turn_number, |
| 577 | total_turns: self.total_turns, |
| 578 | session_started_at: self.session_started_at, |
| 579 | turn_started_at: self.turn_started_at, |
| 580 | turn_ended_at: self.turn_ended_at, |
| 581 | turn_duration_ms: self.turn_duration_ms, |
| 582 | prompt_summary: self.prompt_summary, |
| 583 | prompt_hash: self.prompt_hash, |
| 584 | files_in_turn: self.files_in_turn, |
| 585 | files_in_session: self.files_in_session, |
| 586 | delegation_id: self.delegation_id, |
| 587 | } |
| 588 | } |
| 589 | } |
| 590 | |
| 591 | // Tests |
no outgoing calls