|
48 | 48 | routes, |
49 | 49 | safety, |
50 | 50 | inspect, |
| 51 | + prompts, |
51 | 52 | scoring, |
52 | 53 | shields, |
53 | 54 | providers, |
|
80 | 81 | from .resources.completions import CompletionsResource, AsyncCompletionsResource |
81 | 82 | from .resources.moderations import ModerationsResource, AsyncModerationsResource |
82 | 83 | from .resources.models.models import ModelsResource, AsyncModelsResource |
| 84 | + from .resources.prompts.prompts import PromptsResource, AsyncPromptsResource |
83 | 85 | from .resources.scoring_functions import ScoringFunctionsResource, AsyncScoringFunctionsResource |
84 | 86 | from .resources.responses.responses import ResponsesResource, AsyncResponsesResource |
85 | 87 | from .resources.synthetic_data_generation import ( |
@@ -183,6 +185,12 @@ def responses(self) -> ResponsesResource: |
183 | 185 |
|
184 | 186 | return ResponsesResource(self) |
185 | 187 |
|
| 188 | + @cached_property |
| 189 | + def prompts(self) -> PromptsResource: |
| 190 | + from .resources.prompts import PromptsResource |
| 191 | + |
| 192 | + return PromptsResource(self) |
| 193 | + |
186 | 194 | @cached_property |
187 | 195 | def conversations(self) -> ConversationsResource: |
188 | 196 | from .resources.conversations import ConversationsResource |
@@ -493,6 +501,12 @@ def responses(self) -> AsyncResponsesResource: |
493 | 501 |
|
494 | 502 | return AsyncResponsesResource(self) |
495 | 503 |
|
| 504 | + @cached_property |
| 505 | + def prompts(self) -> AsyncPromptsResource: |
| 506 | + from .resources.prompts import AsyncPromptsResource |
| 507 | + |
| 508 | + return AsyncPromptsResource(self) |
| 509 | + |
496 | 510 | @cached_property |
497 | 511 | def conversations(self) -> AsyncConversationsResource: |
498 | 512 | from .resources.conversations import AsyncConversationsResource |
@@ -752,6 +766,12 @@ def responses(self) -> responses.ResponsesResourceWithRawResponse: |
752 | 766 |
|
753 | 767 | return ResponsesResourceWithRawResponse(self._client.responses) |
754 | 768 |
|
| 769 | + @cached_property |
| 770 | + def prompts(self) -> prompts.PromptsResourceWithRawResponse: |
| 771 | + from .resources.prompts import PromptsResourceWithRawResponse |
| 772 | + |
| 773 | + return PromptsResourceWithRawResponse(self._client.prompts) |
| 774 | + |
755 | 775 | @cached_property |
756 | 776 | def conversations(self) -> conversations.ConversationsResourceWithRawResponse: |
757 | 777 | from .resources.conversations import ConversationsResourceWithRawResponse |
@@ -897,6 +917,12 @@ def responses(self) -> responses.AsyncResponsesResourceWithRawResponse: |
897 | 917 |
|
898 | 918 | return AsyncResponsesResourceWithRawResponse(self._client.responses) |
899 | 919 |
|
| 920 | + @cached_property |
| 921 | + def prompts(self) -> prompts.AsyncPromptsResourceWithRawResponse: |
| 922 | + from .resources.prompts import AsyncPromptsResourceWithRawResponse |
| 923 | + |
| 924 | + return AsyncPromptsResourceWithRawResponse(self._client.prompts) |
| 925 | + |
900 | 926 | @cached_property |
901 | 927 | def conversations(self) -> conversations.AsyncConversationsResourceWithRawResponse: |
902 | 928 | from .resources.conversations import AsyncConversationsResourceWithRawResponse |
@@ -1044,6 +1070,12 @@ def responses(self) -> responses.ResponsesResourceWithStreamingResponse: |
1044 | 1070 |
|
1045 | 1071 | return ResponsesResourceWithStreamingResponse(self._client.responses) |
1046 | 1072 |
|
| 1073 | + @cached_property |
| 1074 | + def prompts(self) -> prompts.PromptsResourceWithStreamingResponse: |
| 1075 | + from .resources.prompts import PromptsResourceWithStreamingResponse |
| 1076 | + |
| 1077 | + return PromptsResourceWithStreamingResponse(self._client.prompts) |
| 1078 | + |
1047 | 1079 | @cached_property |
1048 | 1080 | def conversations(self) -> conversations.ConversationsResourceWithStreamingResponse: |
1049 | 1081 | from .resources.conversations import ConversationsResourceWithStreamingResponse |
@@ -1191,6 +1223,12 @@ def responses(self) -> responses.AsyncResponsesResourceWithStreamingResponse: |
1191 | 1223 |
|
1192 | 1224 | return AsyncResponsesResourceWithStreamingResponse(self._client.responses) |
1193 | 1225 |
|
| 1226 | + @cached_property |
| 1227 | + def prompts(self) -> prompts.AsyncPromptsResourceWithStreamingResponse: |
| 1228 | + from .resources.prompts import AsyncPromptsResourceWithStreamingResponse |
| 1229 | + |
| 1230 | + return AsyncPromptsResourceWithStreamingResponse(self._client.prompts) |
| 1231 | + |
1194 | 1232 | @cached_property |
1195 | 1233 | def conversations(self) -> conversations.AsyncConversationsResourceWithStreamingResponse: |
1196 | 1234 | from .resources.conversations import AsyncConversationsResourceWithStreamingResponse |
|
0 commit comments