| Field |
Type |
answers |
dict[str, DecisionAnswer] |
usage |
DecisionUsage |
to_dict() -> dict[str, Any]
Fields depend on type; absent optional fields return None. to_dict preserves the wire object.
| Field |
Type |
type |
Literal['noul', 'choice', 'score', 'text', 'number', 'date', 'box', 'boxes'] |
noul |
float |
choice |
str | None |
choices |
list[str] | None |
confidence |
float | None |
probabilities |
dict[str, float] |
score |
float |
legend |
dict[str, str] |
text |
str | None |
span |
list[int] | None |
found |
float | None |
path |
str | None |
number |
float | None |
unit |
str | None |
interval |
list[float] | None |
date |
str | None |
box |
dict[str, float] | None |
boxes |
list[dict[str, Any]] |
count |
int |
at_least |
bool |
presence |
list[float] |
to_dict() -> dict[str, Any]
| Field |
Type |
input_tokens |
int |
output_tokens |
int |
| Field |
Type |
Default |
id |
str |
required |
choices |
list[Choice] |
required |
created |
int |
required |
model |
str |
required |
system_fingerprint |
str |
required |
object |
str |
required |
usage |
Usage |
required |
adapter_generation |
str | None |
None |
agentic_tool_calls |
list[AgenticToolCallRecord] | None |
None |
files |
list[File] | None |
None |
session_id |
str | None |
None |
| Field |
Type |
Default |
id |
str |
required |
choices |
list[ChunkChoice] |
required |
created |
int |
required |
model |
str |
required |
system_fingerprint |
str |
required |
object |
str |
required |
usage |
Usage | None |
None |
adapter_generation |
str | None |
None |
session_id |
str | None |
None |
| Field |
Type |
round |
int |
name |
str |
arguments |
str |
result_content |
str |
result_images_base64 |
list[str] |
file_ids |
list[str] |
| Field |
Type |
Default |
finish_reason |
str |
required |
index |
int |
required |
message |
ResponseMessage |
required |
logprobs |
Logprobs | None |
None |
| Field |
Type |
finish_reason |
str | None |
index |
int |
delta |
Delta |
logprobs |
ResponseLogprob | None |
| Field |
Type |
Default |
content |
str | None |
required |
role |
str |
required |
tool_calls |
list[ToolCallResponse] | None |
None |
reasoning_content |
str | None |
None |
audio |
ChatAudioResponse | None |
None |
| Field |
Type |
Default |
content |
str | None |
required |
role |
str |
required |
tool_calls |
list[ToolCallResponse] | None |
required |
reasoning_content |
str | None |
None |
audio |
ChatAudioResponse | None |
None |
| Field |
Type |
Default |
id |
str | None |
None |
data |
str | None |
None |
expires_at |
int | None |
None |
transcript |
str | None |
None |
| Field |
Type |
Default |
id |
str |
required |
choices |
list[CompletionChoice] |
required |
created |
int |
required |
model |
str |
required |
system_fingerprint |
str |
required |
object |
str |
required |
usage |
Usage |
required |
adapter_generation |
str | None |
None |
| Field |
Type |
Default |
finish_reason |
str |
required |
index |
int |
required |
text |
str |
required |
logprobs |
Logprobs | None |
None |
| Field |
Type |
completion_tokens |
int |
prompt_tokens |
int |
total_tokens |
int |
completion_tokens_details |
CompletionTokensDetails | None |
avg_tok_per_sec |
float |
avg_prompt_tok_per_sec |
float |
avg_compl_tok_per_sec |
float |
total_time_sec |
float |
total_prompt_time_sec |
float |
total_completion_time_sec |
float |
| Field |
Type |
Description |
reasoning_tokens |
int |
Reasoning tokens, excluding delimiters; included in Usage.completion_tokens. |
| Field |
Type |
content |
list[ResponseLogprob] | None |
| Field |
Type |
token |
str |
logprob |
float |
bytes |
list[int] | None |
top_logprobs |
list[TopLogprob] |
| Field |
Type |
token |
int |
logprob |
float |
bytes |
str | None |
| Field |
Type |
data |
list[ImageChoice] |
created |
int |
| Field |
Type |
url |
str | None |
b64_json |
str | None |
This wraps PCM values, sampling rate and the number of channels.
| Field |
Type |
pcm |
list[float] |
rate |
int |
channels |
int |
| Field |
Type |
index |
int |
id |
str |
tp |
ToolCallType |
function |
CalledFunction |
| Member |
ToolCallType.Function |
| Field |
Type |
name |
str |
arguments |
str |
Generated from mistralrs-pyo3/mistralrs.pyi.