Skip to content

Commit 947c5a3

Browse files
feat(api): update via SDK Studio
1 parent 406bdfb commit 947c5a3

File tree

3 files changed

+101
-3
lines changed

3 files changed

+101
-3
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-1c5bc84a8d003bb986b2cc2a7bb6a5232ab0514469a7f67ddbf58c06de248a03.yml
3-
openapi_spec_hash: ad377dd848973abb656ca35f5fdc93df
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: e67fd054e95c1e82f78f4b834e96bb65

src/resources/moderations.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ export namespace CreateResponse {
5555
category_applied_input_types?: { [key: string]: Array<string> };
5656

5757
/**
58-
* A list of the categories along with their scores as predicted by model.
58+
* A list of the categories along with their scores as predicted by model. Required
59+
* set of categories that need to be in response - violence - violence/graphic -
60+
* harassment - harassment/threatening - hate - hate/threatening - illicit -
61+
* illicit/violent - sexual - sexual/minors - self-harm - self-harm/intent -
62+
* self-harm/instructions
5963
*/
6064
category_scores?: { [key: string]: number };
6165

src/resources/responses/responses.ts

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,8 @@ export type ResponseObjectStream =
590590
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpCallInProgress
591591
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpCallFailed
592592
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpCallCompleted
593+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseContentPartAdded
594+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseContentPartDone
593595
| ResponseObjectStream.OpenAIResponseObjectStreamResponseCompleted;
594596

595597
export namespace ResponseObjectStream {
@@ -1683,6 +1685,98 @@ export namespace ResponseObjectStream {
16831685
type: 'response.mcp_call.completed';
16841686
}
16851687

1688+
/**
1689+
* Streaming event for when a new content part is added to a response item.
1690+
*/
1691+
export interface OpenAIResponseObjectStreamResponseContentPartAdded {
1692+
/**
1693+
* Unique identifier of the output item containing this content part
1694+
*/
1695+
item_id: string;
1696+
1697+
/**
1698+
* The content part that was added
1699+
*/
1700+
part:
1701+
| OpenAIResponseObjectStreamResponseContentPartAdded.OpenAIResponseContentPartOutputText
1702+
| OpenAIResponseObjectStreamResponseContentPartAdded.OpenAIResponseContentPartRefusal;
1703+
1704+
/**
1705+
* Unique identifier of the response containing this content
1706+
*/
1707+
response_id: string;
1708+
1709+
/**
1710+
* Sequential number for ordering streaming events
1711+
*/
1712+
sequence_number: number;
1713+
1714+
/**
1715+
* Event type identifier, always "response.content_part.added"
1716+
*/
1717+
type: 'response.content_part.added';
1718+
}
1719+
1720+
export namespace OpenAIResponseObjectStreamResponseContentPartAdded {
1721+
export interface OpenAIResponseContentPartOutputText {
1722+
text: string;
1723+
1724+
type: 'output_text';
1725+
}
1726+
1727+
export interface OpenAIResponseContentPartRefusal {
1728+
refusal: string;
1729+
1730+
type: 'refusal';
1731+
}
1732+
}
1733+
1734+
/**
1735+
* Streaming event for when a content part is completed.
1736+
*/
1737+
export interface OpenAIResponseObjectStreamResponseContentPartDone {
1738+
/**
1739+
* Unique identifier of the output item containing this content part
1740+
*/
1741+
item_id: string;
1742+
1743+
/**
1744+
* The completed content part
1745+
*/
1746+
part:
1747+
| OpenAIResponseObjectStreamResponseContentPartDone.OpenAIResponseContentPartOutputText
1748+
| OpenAIResponseObjectStreamResponseContentPartDone.OpenAIResponseContentPartRefusal;
1749+
1750+
/**
1751+
* Unique identifier of the response containing this content
1752+
*/
1753+
response_id: string;
1754+
1755+
/**
1756+
* Sequential number for ordering streaming events
1757+
*/
1758+
sequence_number: number;
1759+
1760+
/**
1761+
* Event type identifier, always "response.content_part.done"
1762+
*/
1763+
type: 'response.content_part.done';
1764+
}
1765+
1766+
export namespace OpenAIResponseObjectStreamResponseContentPartDone {
1767+
export interface OpenAIResponseContentPartOutputText {
1768+
text: string;
1769+
1770+
type: 'output_text';
1771+
}
1772+
1773+
export interface OpenAIResponseContentPartRefusal {
1774+
refusal: string;
1775+
1776+
type: 'refusal';
1777+
}
1778+
}
1779+
16861780
/**
16871781
* Streaming event indicating a response has been completed.
16881782
*/

0 commit comments

Comments
 (0)