Documentation
¶
Overview ¶
Package exutil provides shared helpers for example programs.
Index ¶
- func LogBatch(label string, responses []*protocol.ChatResponse, e2eStart time.Time)
- func LogChat(label string, resp *protocol.ChatResponse, e2eStart time.Time)
- func LogE2E(label string, e2eStart time.Time)
- func LogStream(label string, stream protocol.ChatStream, e2eStart time.Time)
- func LogTurn(label, callID string, stream protocol.ChatStream, e2eStart time.Time, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogBatch ¶
func LogBatch(label string, responses []*protocol.ChatResponse, e2eStart time.Time)
LogBatch logs batch end-to-end time and per-response LLM call latency.
func LogChat ¶
func LogChat(label string, resp *protocol.ChatResponse, e2eStart time.Time)
LogChat logs provider-reported LLM call latency and end-to-end wall time for a sync Chat. e2eStart should be captured immediately before client.Chat (or chain/tool invocation).
func LogE2E ¶
LogE2E logs end-to-end wall time when provider metrics are unavailable (e.g. mock models).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.