pub struct RunStreamEvent {}
Expand description
§on openapi.yaml
RunStreamEvent:
oneOf:
- type: object
properties:
event:
type: string
enum:
- thread.run.created
x-stainless-const: true
data:
$ref: "#/components/schemas/RunObject"
required:
- event
- data
description: Occurs when a new [run](/docs/api-reference/runs/object) is created.
x-oaiMeta:
dataDescription: "`data` is a [run](/docs/api-reference/runs/object)"
- type: object
properties:
event:
type: string
enum:
- thread.run.queued
x-stainless-const: true
data:
$ref: "#/components/schemas/RunObject"
required:
- event
- data
description:
Occurs when a [run](/docs/api-reference/runs/object) moves to a
`queued` status.
x-oaiMeta:
dataDescription: "`data` is a [run](/docs/api-reference/runs/object)"
- type: object
properties:
event:
type: string
enum:
- thread.run.in_progress
x-stainless-const: true
data:
$ref: "#/components/schemas/RunObject"
required:
- event
- data
description:
Occurs when a [run](/docs/api-reference/runs/object) moves to an
`in_progress` status.
x-oaiMeta:
dataDescription: "`data` is a [run](/docs/api-reference/runs/object)"
- type: object
properties:
event:
type: string
enum:
- thread.run.requires_action
x-stainless-const: true
data:
$ref: "#/components/schemas/RunObject"
required:
- event
- data
description:
Occurs when a [run](/docs/api-reference/runs/object) moves to a
`requires_action` status.
x-oaiMeta:
dataDescription: "`data` is a [run](/docs/api-reference/runs/object)"
- type: object
properties:
event:
type: string
enum:
- thread.run.completed
x-stainless-const: true
data:
$ref: "#/components/schemas/RunObject"
required:
- event
- data
description: Occurs when a [run](/docs/api-reference/runs/object) is completed.
x-oaiMeta:
dataDescription: "`data` is a [run](/docs/api-reference/runs/object)"
- type: object
properties:
event:
type: string
enum:
- thread.run.incomplete
x-stainless-const: true
data:
$ref: "#/components/schemas/RunObject"
required:
- event
- data
description:
Occurs when a [run](/docs/api-reference/runs/object) ends with
status `incomplete`.
x-oaiMeta:
dataDescription: "`data` is a [run](/docs/api-reference/runs/object)"
- type: object
properties:
event:
type: string
enum:
- thread.run.failed
x-stainless-const: true
data:
$ref: "#/components/schemas/RunObject"
required:
- event
- data
description: Occurs when a [run](/docs/api-reference/runs/object) fails.
x-oaiMeta:
dataDescription: "`data` is a [run](/docs/api-reference/runs/object)"
- type: object
properties:
event:
type: string
enum:
- thread.run.cancelling
x-stainless-const: true
data:
$ref: "#/components/schemas/RunObject"
required:
- event
- data
description:
Occurs when a [run](/docs/api-reference/runs/object) moves to a
`cancelling` status.
x-oaiMeta:
dataDescription: "`data` is a [run](/docs/api-reference/runs/object)"
- type: object
properties:
event:
type: string
enum:
- thread.run.cancelled
x-stainless-const: true
data:
$ref: "#/components/schemas/RunObject"
required:
- event
- data
description: Occurs when a [run](/docs/api-reference/runs/object) is cancelled.
x-oaiMeta:
dataDescription: "`data` is a [run](/docs/api-reference/runs/object)"
- type: object
properties:
event:
type: string
enum:
- thread.run.expired
x-stainless-const: true
data:
$ref: "#/components/schemas/RunObject"
required:
- event
- data
description: Occurs when a [run](/docs/api-reference/runs/object) expires.
x-oaiMeta:
dataDescription: "`data` is a [run](/docs/api-reference/runs/object)"
Trait Implementations§
Source§impl Debug for RunStreamEvent
impl Debug for RunStreamEvent
Source§impl<'de> Deserialize<'de> for RunStreamEvent
impl<'de> Deserialize<'de> for RunStreamEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RunStreamEvent
impl RefUnwindSafe for RunStreamEvent
impl Send for RunStreamEvent
impl Sync for RunStreamEvent
impl Unpin for RunStreamEvent
impl UnwindSafe for RunStreamEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more