The ResponseStatus property indicates how the most recent
request completed. This value describes the completion state of the
response returned by the model and is independent of the HTTP status
returned by the provider.
For example, a request may return a successful HTTP status while
the response itself is incomplete, truncated due to token limits, or
cancelled before generation completed. The HttpStatus property
returns the HTTP response status from the provider, while the
ResponseStatus property describes the state of the generated
response.
This property can return one of the following values:
A value of llmResponseComplete indicates that the
response was generated normally. Other values may indicate that the
response was truncated due to token limits, interrupted, cancelled,
timed out or terminated because of an error. Applications can use
this property to determine whether the generated response is complete
before processing the returned content.