API Call • AI Agents Framework

api_call: Context manager for profiling API calls.

api_call

Method

</div>

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

Context manager for profiling API calls.

Signature

python
def api_call(endpoint: str, method: str) -> Any

Parameters

ParamField str

No description available.

ParamField str

No description available.

Returns

ResponseField Any

The result of the operation.

Uses

  • api_call
  • get_profiler

Used By

Source

View on GitHub

praisonai/profiler.py at line 879