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

Method new

atomic-core/src/change/provenance_graph/builder.rs:81–96  ·  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

79impl ProvenanceGraphBuilder {
80 /// Create a new builder with required fields.
81 pub fn new(session_id: impl Into<String>, agent_name: impl Into<String>) -> Self {
82 Self {
83 session_id: session_id.into(),
84 agent_name: agent_name.into(),
85 agent_display_name: String::new(),
86 agent_vendor: String::new(),
87 profile: None,
88 nodes: Vec::new(),
89 edges: Vec::new(),
90 changes_explained: Vec::new(),
91 previous: None,
92 timestamp: None,
93 plan_id: None,
94 todos: Vec::new(),
95 }
96 }
97
98 /// Set the human-readable agent display name.
99 pub fn agent_display_name(mut self, name: impl Into<String>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected