Create a new builder with required fields.
(session_id: impl Into<String>, agent_name: impl Into<String>)
| 79 | impl 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected