MCPcopy
hub / github.com/algorithmicsuperintelligence/optillm / log_provider_call

Function log_provider_call

optillm/conversation_logger.py:257–260  ·  view source on GitHub ↗

Log a provider call using the global logger instance

(request_id: str, provider_request: Dict[str, Any], provider_response: Dict[str, Any])

Source from the content-addressed store, hash-verified

255
256
257def log_provider_call(request_id: str, provider_request: Dict[str, Any], provider_response: Dict[str, Any]) -> None:
258 """Log a provider call using the global logger instance"""
259 if _global_logger and _global_logger.enabled:
260 _global_logger.log_provider_call(request_id, provider_request, provider_response)
261
262
263def log_error(request_id: str, error_message: str) -> None:

Callers

nothing calls this directly

Calls 1

log_provider_callMethod · 0.80

Tested by

no test coverage detected