Skip to content

Commit cda87f0

Browse files
feat(api): update via SDK Studio
1 parent 6416e59 commit cda87f0

File tree

2 files changed

+96
-2
lines changed

2 files changed

+96
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 106
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-f59f1c7d33001d60b5190f68aa49eacec90f05dbe694620b8916152c3922051d.yml
3-
openapi_spec_hash: 804edd2e834493906dc430145402be3b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-4f6633567c1a079df49d0cf58f37251a4bb0ee2f2a496ac83c9fee26eb325f9c.yml
3+
openapi_spec_hash: af5b3d3bbecf48f15c90b982ccac852e
44
config_hash: de16e52db65de71ac35adcdb665a74f5

src/resources/responses/responses.ts

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ export type ResponseObjectStream =
547547
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpCallInProgress
548548
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpCallFailed
549549
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpCallCompleted
550+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseContentPartAdded
551+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseContentPartDone
550552
| ResponseObjectStream.OpenAIResponseObjectStreamResponseCompleted;
551553

552554
export namespace ResponseObjectStream {
@@ -1576,6 +1578,98 @@ export namespace ResponseObjectStream {
15761578
type: 'response.mcp_call.completed';
15771579
}
15781580

1581+
/**
1582+
* Streaming event for when a new content part is added to a response item.
1583+
*/
1584+
export interface OpenAIResponseObjectStreamResponseContentPartAdded {
1585+
/**
1586+
* Unique identifier of the output item containing this content part
1587+
*/
1588+
item_id: string;
1589+
1590+
/**
1591+
* The content part that was added
1592+
*/
1593+
part:
1594+
| OpenAIResponseObjectStreamResponseContentPartAdded.OpenAIResponseContentPartOutputText
1595+
| OpenAIResponseObjectStreamResponseContentPartAdded.OpenAIResponseContentPartRefusal;
1596+
1597+
/**
1598+
* Unique identifier of the response containing this content
1599+
*/
1600+
response_id: string;
1601+
1602+
/**
1603+
* Sequential number for ordering streaming events
1604+
*/
1605+
sequence_number: number;
1606+
1607+
/**
1608+
* Event type identifier, always "response.content_part.added"
1609+
*/
1610+
type: 'response.content_part.added';
1611+
}
1612+
1613+
export namespace OpenAIResponseObjectStreamResponseContentPartAdded {
1614+
export interface OpenAIResponseContentPartOutputText {
1615+
text: string;
1616+
1617+
type: 'output_text';
1618+
}
1619+
1620+
export interface OpenAIResponseContentPartRefusal {
1621+
refusal: string;
1622+
1623+
type: 'refusal';
1624+
}
1625+
}
1626+
1627+
/**
1628+
* Streaming event for when a content part is completed.
1629+
*/
1630+
export interface OpenAIResponseObjectStreamResponseContentPartDone {
1631+
/**
1632+
* Unique identifier of the output item containing this content part
1633+
*/
1634+
item_id: string;
1635+
1636+
/**
1637+
* The completed content part
1638+
*/
1639+
part:
1640+
| OpenAIResponseObjectStreamResponseContentPartDone.OpenAIResponseContentPartOutputText
1641+
| OpenAIResponseObjectStreamResponseContentPartDone.OpenAIResponseContentPartRefusal;
1642+
1643+
/**
1644+
* Unique identifier of the response containing this content
1645+
*/
1646+
response_id: string;
1647+
1648+
/**
1649+
* Sequential number for ordering streaming events
1650+
*/
1651+
sequence_number: number;
1652+
1653+
/**
1654+
* Event type identifier, always "response.content_part.done"
1655+
*/
1656+
type: 'response.content_part.done';
1657+
}
1658+
1659+
export namespace OpenAIResponseObjectStreamResponseContentPartDone {
1660+
export interface OpenAIResponseContentPartOutputText {
1661+
text: string;
1662+
1663+
type: 'output_text';
1664+
}
1665+
1666+
export interface OpenAIResponseContentPartRefusal {
1667+
refusal: string;
1668+
1669+
type: 'refusal';
1670+
}
1671+
}
1672+
15791673
/**
15801674
* Streaming event indicating a response has been completed.
15811675
*/

0 commit comments

Comments
 (0)