Occurs when a new [run](https://platform.openai.com/docs/api-reference/runs/object) is created.
| 840 | // Occurs when a new |
| 841 | // [run](https://platform.openai.com/docs/api-reference/runs/object) is created. |
| 842 | type 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 |
| 857 | func (r AssistantStreamEventThreadRunCreated) RawJSON() string { return r.JSON.raw } |
nothing calls this directly
no outgoing calls
no test coverage detected