MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / with_metadata

Method with_metadata

core/src/llm/response.rs:53–56  ·  view source on GitHub ↗

Add metadata

(mut self, key: String, value: serde_json::Value)

Source from the content-addressed store, hash-verified

51
52 /// Add metadata
53 pub fn with_metadata(mut self, key: String, value: serde_json::Value) -> Self {
54 self.metadata.insert(key, value);
55 self
56 }
57
58 /// Set finish reason
59 pub fn with_finish_reason(mut self, finish_reason: FinishReason) -> Self {

Callers 1

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected