distill::cascade::CascadeResult
More...
Public Functions
Public Attributes
Detailed Description
class distill::cascade::CascadeResult;
Result of a multi-teacher cascade execution.
Attributes:
final_content: The response text returned to the caller.
level1_confidence: Confidence score from Level 1 (0.0 if Level 1
failed with an exception).
level2_confidence: Confidence score from Level 2, or ``None`` if
no escalation occurred.
level1_model: The Level 1 model name.
level2_model: The Level 2 model that produced ``final_content``,
or ``None`` if no escalation occurred.
escalated: ``True`` if Level 2 was invoked.
attempts: List of per-attempt records, each a dict with keys
``model_name``, ``confidence``, and ``error`` (str or None).
Public Functions Documentation
function init
__init__(
self self,
final_content final_content,
level1_confidence level1_confidence,
level2_confidence level2_confidence,
level1_model level1_model,
escalated escalated,
attempts attempts,
level2_model level2_model =None
)
function to_dict
Return a JSON-serialisable representation for logging.```
## Public Attributes Documentation
### variable final_content
```python
final_content;
variable level1_confidence
variable level2_confidence
variable level1_model
variable level2_model
variable escalated
variable attempts
Updated on 2026-07-25 at 22:56:57 +0000