Record API Call • AI Agents Framework

record_api_call: Record an API/HTTP call timing.

record_api_call

Method

</div>

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

Record an API/HTTP call timing.

Signature

python
def record_api_call(endpoint: str, method: str, duration_ms: float, status_code: int, request_size: int, response_size: int) -> None

Parameters

ParamField str

No description available.

ParamField str

No description available.

ParamField float

No description available.

ParamField int

No description available.

ParamField int

No description available.

ParamField int

No description available.

Uses

  • record_api_call
  • get_profiler

Used By

Source

View on GitHub

praisonai/profiler.py at line 861