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

Method new

atomic-core/src/change/provenance/mod.rs:361–385  ·  view source on GitHub ↗

Create a new provenance with minimal required fields.

(vendor: AIVendor, model: impl Into<String>, tool: AITool)

Source from the content-addressed store, hash-verified

359impl Provenance {
360 /// Create a new provenance with minimal required fields.
361 pub fn new(vendor: AIVendor, model: impl Into<String>, tool: AITool) -> Self {
362 Self {
363 vendor,
364 model: model.into(),
365 model_version: None,
366 tool,
367 suggestion_type: SuggestionType::default(),
368 prompt: PromptContent::None,
369 system_prompt_hash: None,
370 tokens: TokenUsage::default(),
371 cost: Cost::zero(),
372 temperature: None,
373 timestamp: None,
374 request_id: None,
375 session_id: None,
376 metadata: Vec::new(),
377 agent_mode: None,
378 finish_reason: None,
379 step_count: None,
380 session_slug: None,
381 reasoning_signature: None,
382 reasoning_text: None,
383 task_plan: None,
384 }
385 }
386
387 /// Create a builder for constructing provenance.
388 pub fn builder() -> ProvenanceBuilder {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected