MCPcopy
hub / github.com/openai/openai-go / AssistantStreamEventThreadRunIncomplete

Struct AssistantStreamEventThreadRunIncomplete

betaassistant.go:952–964  ·  view source on GitHub ↗

Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) ends with status `incomplete`.

Source from the content-addressed store, hash-verified

950// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object)
951// ends with status `incomplete`.
952type AssistantStreamEventThreadRunIncomplete struct {
953 // Represents an execution run on a
954 // [thread](https://platform.openai.com/docs/api-reference/threads).
955 Data Run `json:"data" api:"required"`
956 Event constant.ThreadRunIncomplete `json:"event" default:"thread.run.incomplete"`
957 // JSON contains metadata for fields, check presence with [respjson.Field.Valid].
958 JSON struct {
959 Data respjson.Field
960 Event respjson.Field
961 ExtraFields map[string]respjson.Field
962 raw string
963 } `json:"-"`
964}
965
966// Returns the unmodified JSON received from the API
967func (r AssistantStreamEventThreadRunIncomplete) RawJSON() string { return r.JSON.raw }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected