ModelResponse
A single model’s response to a prompt.
Usage
ModelResponse(
model,
text,
latency_ms=None,
token_count=None,
weight=1.0,
)Parameters
model: str-
Model identifier (e.g.,
"anthropic:claude-sonnet-4-6"). text: str-
The response text from the model.
latency_ms: float | None = None-
Response latency in milliseconds, if measured.
token_count: int | None = None-
Number of tokens in the response, if known.
weight: float = 1.0- Optional weight for weighted consensus (default 1.0).