Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/openai/types/beta/beta_response_output_message_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,19 @@ class Agent(TypedDict, total=False):
class BetaResponseOutputMessageParam(TypedDict, total=False):
"""An output message from the model."""

id: Required[str]
"""The unique ID of the output message."""
id: Optional[str]
"""The unique ID of the output message.

Populated when this item is returned via API.
"""

content: Required[Iterable[Content]]
"""The content of the output message."""

role: Required[Literal["assistant"]]
"""The role of the output message. Always `assistant`."""

status: Required[Literal["in_progress", "completed", "incomplete"]]
status: Optional[Literal["in_progress", "completed", "incomplete"]]
"""The status of the message input.

One of `in_progress`, `completed`, or `incomplete`. Populated when input items
Expand Down
9 changes: 6 additions & 3 deletions src/openai/types/responses/response_output_message_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@
class ResponseOutputMessageParam(TypedDict, total=False):
"""An output message from the model."""

id: Required[str]
"""The unique ID of the output message."""
id: Optional[str]
"""The unique ID of the output message.

Populated when this item is returned via API.
"""

content: Required[Iterable[Content]]
"""The content of the output message."""

role: Required[Literal["assistant"]]
"""The role of the output message. Always `assistant`."""

status: Required[Literal["in_progress", "completed", "incomplete"]]
status: Optional[Literal["in_progress", "completed", "incomplete"]]
"""The status of the message input.

One of `in_progress`, `completed`, or `incomplete`. Populated when input items
Expand Down