gen_ai_hub.orchestration.exceptions module¶
- exception gen_ai_hub.orchestration.exceptions.OrchestrationError(request_id: str, http_headers: Headers, message: str, code: int, location: str, module_results: Dict[str, Any], retries: int = 0)¶
Bases:
ExceptionThis exception is raised when an error occurs during the execution of the orchestration service, typically due to incorrect usage, invalid configurations, or issues with run parameters defined by the user.
- __init__(request_id: str, http_headers: Headers, message: str, code: int, location: str, module_results: Dict[str, Any], retries: int = 0)¶
The constructor for OrchestrationError class.
- Parameters:
request_id (str) – unique identifier for the request
http_headers (httpx.Headers) – the HTTP headers associated with the error, useful in case of e.g. rate limiting.
message (str) – Detailed error message describing the issue.
code (int) – Error code associated with the specific type of failure
location (str) – Specific component or step in the orchestration process where the error occurred
module_results (Dict[str, Any]) – State information and partial results from various modules at the time of the error, useful for debugging
retries (int, optional) – the number of retries attempted