MessageCompletedData
The model answered, failed, or was stopped.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
message |
Message |
- |
response? |
object |
- |
response.model? |
string |
- |
response.id? |
string |
- |
response.finish_reasons? |
string[] |
- |
usage? |
Usage |
- |
cost? |
Cost | null |
What the call cost, on a call the model answered; null where nobody prices the model, which is not the same as nothing. |
status |
"cancelled" | "ok" | "error" |
- |
error? |
ErrorInfo |
- |
duration_ms |
number |
- |