Record Streaming • AI Agents Framework

record_streaming: Record streaming metrics.

record_streaming

Method

</div>

This is a method of the Profiler class in the profiler module.

Record streaming metrics.

Signature

python
def record_streaming(name: str, ttft_ms: float, total_ms: float, chunk_count: int, total_tokens: int) -> None

Parameters

ParamField str

No description available.

ParamField float

No description available.

ParamField float

No description available.

ParamField int

No description available.

ParamField int

No description available.

Uses

  • cls.is_enabled
  • StreamingRecord

Used By

Source

View on GitHub

praisonai/profiler.py at line 506