MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / build

Method build

atomic-agent/src/envelope.rs:551–569  ·  view source on GitHub ↗

Build the `SessionEnvelope`.

(self)

Source from the content-addressed store, hash-verified

549
550 /// Build the `SessionEnvelope`.
551 pub fn build(self) -> SessionEnvelope {
552 SessionEnvelope {
553 schema_version: SCHEMA_VERSION,
554 session_id: self.session_id,
555 agent_name: self.agent_name,
556 agent_display_name: self.agent_display_name,
557 turn_number: self.turn_number,
558 total_turns: self.total_turns,
559 session_started_at: self.session_started_at,
560 turn_started_at: self.turn_started_at,
561 turn_ended_at: self.turn_ended_at,
562 turn_duration_ms: self.turn_duration_ms,
563 prompt_summary: self.prompt_summary,
564 prompt_hash: self.prompt_hash,
565 files_in_turn: self.files_in_turn,
566 files_in_session: self.files_in_session,
567 delegation_id: self.delegation_id,
568 }
569 }
570}
571
572// Tests

Calls

no outgoing calls