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

Struct AssistantStreamEventThreadRunCreated

betaassistant.go:842–854  ·  view source on GitHub ↗

Occurs when a new [run](https://platform.openai.com/docs/api-reference/runs/object) is created.

Source from the content-addressed store, hash-verified

840// Occurs when a new
841// [run](https://platform.openai.com/docs/api-reference/runs/object) is created.
842type AssistantStreamEventThreadRunCreated struct {
843 // Represents an execution run on a
844 // [thread](https://platform.openai.com/docs/api-reference/threads).
845 Data Run `json:"data" api:"required"`
846 Event constant.ThreadRunCreated `json:"event" default:"thread.run.created"`
847 // JSON contains metadata for fields, check presence with [respjson.Field.Valid].
848 JSON struct {
849 Data respjson.Field
850 Event respjson.Field
851 ExtraFields map[string]respjson.Field
852 raw string
853 } `json:"-"`
854}
855
856// Returns the unmodified JSON received from the API
857func (r AssistantStreamEventThreadRunCreated) RawJSON() string { return r.JSON.raw }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected