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

Struct AssistantStreamEventThreadRunRequiresAction

betaassistant.go:908–920  ·  view source on GitHub ↗

Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object) moves to a `requires_action` status.

Source from the content-addressed store, hash-verified

906// Occurs when a [run](https://platform.openai.com/docs/api-reference/runs/object)
907// moves to a `requires_action` status.
908type AssistantStreamEventThreadRunRequiresAction struct {
909 // Represents an execution run on a
910 // [thread](https://platform.openai.com/docs/api-reference/threads).
911 Data Run `json:"data" api:"required"`
912 Event constant.ThreadRunRequiresAction `json:"event" default:"thread.run.requires_action"`
913 // JSON contains metadata for fields, check presence with [respjson.Field.Valid].
914 JSON struct {
915 Data respjson.Field
916 Event respjson.Field
917 ExtraFields map[string]respjson.Field
918 raw string
919 } `json:"-"`
920}
921
922// Returns the unmodified JSON received from the API
923func (r AssistantStreamEventThreadRunRequiresAction) RawJSON() string { return r.JSON.raw }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected