MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / writeTranscript

Function writeTranscript

benchmark/agentbench/runner.go:251–263  ·  view source on GitHub ↗
(path string, events []agent.StreamEvent)

Source from the content-addressed store, hash-verified

249 }
250}
251
252func writeTranscript(path string, events []agent.StreamEvent) {
253 file, err := os.Create(path)
254 if err != nil {
255 return
256 }
257 defer file.Close()
258 writer := bufio.NewWriter(file)
259 defer writer.Flush()
260 for _, event := range events {
261 line, _ := json.Marshal(event)
262 _, _ = writer.Write(append(line, '\n'))
263 }
264}
265
266func writeJSON(path string, value any) {

Callers 1

writeCaseArtifactsFunction · 0.85

Calls 4

CreateMethod · 0.80
FlushMethod · 0.80
WriteMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected