ml_switcheroo.core.conversion_result¶
Data structures representing the output of the conversion pipeline.
This module defines the ConversionResult Pydantic model, which encapsulates the generated code, any errors encountered, and the execution trace logs.
Classes¶
Container for the results of a transpilation job. |
Module Contents¶
- class ml_switcheroo.core.conversion_result.ConversionResult(/, **data: Any)[source]¶
Bases:
pydantic.BaseModelContainer for the results of a transpilation job.
- code: str = None¶
- errors: List[str] = None¶
- success: bool = None¶
- trace_events: List[Dict[str, Any]] = None¶
- property has_errors: bool¶
Check if the result contains any error messages.
- Returns:
True if one or more errors are present.