| 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 |
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 |
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 |
| Field | Type | Default |
|---|
content | str | None | required |
role | str | required |
tool_calls | list[ToolCallResponse] | None | required |
reasoning_content | str | None | None |
| Field | Type |
|---|
id | str |
choices | list[CompletionChoice] |
created | int |
model | str |
system_fingerprint | str |
object | str |
usage | Usage |
| 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 |
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 |
|---|
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 |
Members and their wire/config names where relevant. The members are fieldless PyO3 enum variants and do not expose .value.
| Member | Wire/config name |
|---|
ToolCallType.Function | 'function' |
| Field | Type |
|---|
name | str |
arguments | str |
Generated from mistralrs-pyo3/mistralrs.pyi.