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

Method new

atomic-core/src/change/envelope.rs:458–475  ·  view source on GitHub ↗

Create a new builder with required fields.

(session_id: impl Into<String>, agent_name: impl Into<String>)

Source from the content-addressed store, hash-verified

456impl 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]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected