Skip to main content

from_transcript

Function from_transcript 

Source
pub fn from_transcript(text: &str) -> Reported
Expand description

Reads the last cost a transcript reports.

The last, not the first: agent CLIs emit running totals, and the final one is the total. Lines that are not JSON are skipped, because a transcript is mostly the agent talking.