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

Method with_usage

core/src/llm/response.rs:47–50  ·  view source on GitHub ↗

Set usage statistics

(mut self, usage: LlmUsage)

Source from the content-addressed store, hash-verified

45
46 /// Set usage statistics
47 pub fn with_usage(mut self, usage: LlmUsage) -> Self {
48 self.usage = usage;
49 self
50 }
51
52 /// Add metadata
53 pub fn with_metadata(mut self, key: String, value: serde_json::Value) -> Self {

Callers 15

parse_responseMethod · 0.45
parse_responseMethod · 0.45
parse_responseMethod · 0.45
parse_responseMethod · 0.45
parse_responseMethod · 0.45
parse_responseMethod · 0.45
streamMethod · 0.45
parse_responseMethod · 0.45
parse_responseMethod · 0.45
parse_responseMethod · 0.45

Calls

no outgoing calls

Tested by 3

test_cost_estimationFunction · 0.36