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
def record_streaming(name: str, ttft_ms: float, total_ms: float, chunk_count: int, total_tokens: int) -> NoneParameters
ParamField
strNo description available.
ParamField
floatNo description available.
ParamField
floatNo description available.
ParamField
intNo description available.
ParamField
intNo description available.
Uses
cls.is_enabledStreamingRecord
Used By
Source
View on GitHubpraisonai/profiler.py at line 506