maxent_grpo.training.generation.errors¶
Shared service error payloads for external generation backends.
Functions
|
Emit a structured log entry for a failed generation call. |
Classes
|
Structured metadata capturing a failed external service request. |
Exceptions
|
Raised when external generation services exhaust their retries. |
- exception maxent_grpo.training.generation.errors.GenerationServiceError(message, payload)[source]¶
Bases:
RuntimeErrorRaised when external generation services exhaust their retries.
- Parameters:
message (str)
payload (ServiceErrorPayload)
- Return type:
None
- class maxent_grpo.training.generation.errors.ServiceErrorPayload(service, endpoint, model, prompt_count, payload_chars, payload_size_bytes, status_code, attempt, max_attempts, exception_type, exception_message, request_id=None, extra=<factory>)[source]¶
Bases:
objectStructured metadata capturing a failed external service request.
- Parameters:
- maxent_grpo.training.generation.errors.log_generation_service_error(logger, stage, error)[source]¶
Emit a structured log entry for a failed generation call.
- Parameters:
logger (Logger)
stage (str)
error (GenerationServiceError)
- Return type:
None