Skip to content

Commit 68f8e74

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore(internal): codegen related update (#300)
1 parent 0da70b8 commit 68f8e74

File tree

5 files changed

+110
-0
lines changed

5 files changed

+110
-0
lines changed

src/prompt_foundry_python_sdk/resources/completion.py

+22
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,21 @@
2929
class CompletionResource(SyncAPIResource):
3030
@cached_property
3131
def with_raw_response(self) -> CompletionResourceWithRawResponse:
32+
"""
33+
This property can be used as a prefix for any HTTP method call to return the
34+
the raw response object instead of the parsed content.
35+
36+
For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
37+
"""
3238
return CompletionResourceWithRawResponse(self)
3339

3440
@cached_property
3541
def with_streaming_response(self) -> CompletionResourceWithStreamingResponse:
42+
"""
43+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
44+
45+
For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
46+
"""
3647
return CompletionResourceWithStreamingResponse(self)
3748

3849
def create(
@@ -98,10 +109,21 @@ def create(
98109
class AsyncCompletionResource(AsyncAPIResource):
99110
@cached_property
100111
def with_raw_response(self) -> AsyncCompletionResourceWithRawResponse:
112+
"""
113+
This property can be used as a prefix for any HTTP method call to return the
114+
the raw response object instead of the parsed content.
115+
116+
For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
117+
"""
101118
return AsyncCompletionResourceWithRawResponse(self)
102119

103120
@cached_property
104121
def with_streaming_response(self) -> AsyncCompletionResourceWithStreamingResponse:
122+
"""
123+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
124+
125+
For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
126+
"""
105127
return AsyncCompletionResourceWithStreamingResponse(self)
106128

107129
async def create(

src/prompt_foundry_python_sdk/resources/evaluation_assertions.py

+22
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,21 @@
3737
class EvaluationAssertionsResource(SyncAPIResource):
3838
@cached_property
3939
def with_raw_response(self) -> EvaluationAssertionsResourceWithRawResponse:
40+
"""
41+
This property can be used as a prefix for any HTTP method call to return the
42+
the raw response object instead of the parsed content.
43+
44+
For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
45+
"""
4046
return EvaluationAssertionsResourceWithRawResponse(self)
4147

4248
@cached_property
4349
def with_streaming_response(self) -> EvaluationAssertionsResourceWithStreamingResponse:
50+
"""
51+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
52+
53+
For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
54+
"""
4455
return EvaluationAssertionsResourceWithStreamingResponse(self)
4556

4657
@overload
@@ -914,10 +925,21 @@ def get(
914925
class AsyncEvaluationAssertionsResource(AsyncAPIResource):
915926
@cached_property
916927
def with_raw_response(self) -> AsyncEvaluationAssertionsResourceWithRawResponse:
928+
"""
929+
This property can be used as a prefix for any HTTP method call to return the
930+
the raw response object instead of the parsed content.
931+
932+
For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
933+
"""
917934
return AsyncEvaluationAssertionsResourceWithRawResponse(self)
918935

919936
@cached_property
920937
def with_streaming_response(self) -> AsyncEvaluationAssertionsResourceWithStreamingResponse:
938+
"""
939+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
940+
941+
For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
942+
"""
921943
return AsyncEvaluationAssertionsResourceWithStreamingResponse(self)
922944

923945
@overload

src/prompt_foundry_python_sdk/resources/evaluations.py

+22
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,21 @@
3131
class EvaluationsResource(SyncAPIResource):
3232
@cached_property
3333
def with_raw_response(self) -> EvaluationsResourceWithRawResponse:
34+
"""
35+
This property can be used as a prefix for any HTTP method call to return the
36+
the raw response object instead of the parsed content.
37+
38+
For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
39+
"""
3440
return EvaluationsResourceWithRawResponse(self)
3541

3642
@cached_property
3743
def with_streaming_response(self) -> EvaluationsResourceWithStreamingResponse:
44+
"""
45+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
46+
47+
For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
48+
"""
3849
return EvaluationsResourceWithStreamingResponse(self)
3950

4051
def create(
@@ -235,10 +246,21 @@ def get(
235246
class AsyncEvaluationsResource(AsyncAPIResource):
236247
@cached_property
237248
def with_raw_response(self) -> AsyncEvaluationsResourceWithRawResponse:
249+
"""
250+
This property can be used as a prefix for any HTTP method call to return the
251+
the raw response object instead of the parsed content.
252+
253+
For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
254+
"""
238255
return AsyncEvaluationsResourceWithRawResponse(self)
239256

240257
@cached_property
241258
def with_streaming_response(self) -> AsyncEvaluationsResourceWithStreamingResponse:
259+
"""
260+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
261+
262+
For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
263+
"""
242264
return AsyncEvaluationsResourceWithStreamingResponse(self)
243265

244266
async def create(

src/prompt_foundry_python_sdk/resources/prompts.py

+22
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,21 @@
3232
class PromptsResource(SyncAPIResource):
3333
@cached_property
3434
def with_raw_response(self) -> PromptsResourceWithRawResponse:
35+
"""
36+
This property can be used as a prefix for any HTTP method call to return the
37+
the raw response object instead of the parsed content.
38+
39+
For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
40+
"""
3541
return PromptsResourceWithRawResponse(self)
3642

3743
@cached_property
3844
def with_streaming_response(self) -> PromptsResourceWithStreamingResponse:
45+
"""
46+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
47+
48+
For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
49+
"""
3950
return PromptsResourceWithStreamingResponse(self)
4051

4152
def create(
@@ -282,10 +293,21 @@ def get_parameters(
282293
class AsyncPromptsResource(AsyncAPIResource):
283294
@cached_property
284295
def with_raw_response(self) -> AsyncPromptsResourceWithRawResponse:
296+
"""
297+
This property can be used as a prefix for any HTTP method call to return the
298+
the raw response object instead of the parsed content.
299+
300+
For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
301+
"""
285302
return AsyncPromptsResourceWithRawResponse(self)
286303

287304
@cached_property
288305
def with_streaming_response(self) -> AsyncPromptsResourceWithStreamingResponse:
306+
"""
307+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
308+
309+
For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
310+
"""
289311
return AsyncPromptsResourceWithStreamingResponse(self)
290312

291313
async def create(

src/prompt_foundry_python_sdk/resources/tools.py

+22
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,21 @@
3131
class ToolsResource(SyncAPIResource):
3232
@cached_property
3333
def with_raw_response(self) -> ToolsResourceWithRawResponse:
34+
"""
35+
This property can be used as a prefix for any HTTP method call to return the
36+
the raw response object instead of the parsed content.
37+
38+
For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
39+
"""
3440
return ToolsResourceWithRawResponse(self)
3541

3642
@cached_property
3743
def with_streaming_response(self) -> ToolsResourceWithStreamingResponse:
44+
"""
45+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
46+
47+
For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
48+
"""
3849
return ToolsResourceWithStreamingResponse(self)
3950

4051
def create(
@@ -231,10 +242,21 @@ def get(
231242
class AsyncToolsResource(AsyncAPIResource):
232243
@cached_property
233244
def with_raw_response(self) -> AsyncToolsResourceWithRawResponse:
245+
"""
246+
This property can be used as a prefix for any HTTP method call to return the
247+
the raw response object instead of the parsed content.
248+
249+
For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
250+
"""
234251
return AsyncToolsResourceWithRawResponse(self)
235252

236253
@cached_property
237254
def with_streaming_response(self) -> AsyncToolsResourceWithStreamingResponse:
255+
"""
256+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
257+
258+
For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
259+
"""
238260
return AsyncToolsResourceWithStreamingResponse(self)
239261

240262
async def create(

0 commit comments

Comments
 (0)