Skip to content

Commit 3b6d7dc

Browse files
committed
Release 0.0.25
1 parent 5e9eb1d commit 3b6d7dc

18 files changed

Lines changed: 6959 additions & 123 deletions

File tree

.mock/definition/__package__.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ types:
435435
Whether the Prompt/Tool is orchestrated by Humanloop. Default is
436436
`True`. If `False`, a log for the Prompt/Tool should be submitted by
437437
the user via the API.
438+
default: true
438439
EvaluateeResponse:
439440
properties:
440441
version: EvaluatedVersionResponse
@@ -1063,6 +1064,7 @@ types:
10631064
save:
10641065
type: optional<boolean>
10651066
docs: Whether the request/response payloads will be stored on Humanloop.
1067+
default: true
10661068
source_datapoint_id:
10671069
type: optional<string>
10681070
docs: >-
@@ -1674,6 +1676,7 @@ types:
16741676
save:
16751677
type: optional<boolean>
16761678
docs: Whether the request/response payloads will be stored on Humanloop.
1679+
default: true
16771680
source_datapoint_id:
16781681
type: optional<string>
16791682
docs: >-
@@ -1966,6 +1969,7 @@ types:
19661969
save:
19671970
type: optional<boolean>
19681971
docs: Whether the request/response payloads will be stored on Humanloop.
1972+
default: true
19691973
source_datapoint_id:
19701974
type: optional<string>
19711975
docs: >-
@@ -2463,6 +2467,7 @@ types:
24632467
Whether the Evaluator is orchestrated by Humanloop. Default is `True`.
24642468
If `False`, a log for the Evaluator should be submitted by the user
24652469
via the API.
2470+
default: true
24662471
ToolResponse:
24672472
docs: Request to create a new Tool.
24682473
properties:

.mock/definition/prompts.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,7 @@ service:
769769
docs: >-
770770
Whether the request/response payloads will be stored on
771771
Humanloop.
772+
default: true
772773
source_datapoint_id:
773774
type: optional<string>
774775
docs: >-
@@ -906,6 +907,7 @@ service:
906907
docs: >-
907908
Whether the request/response payloads will be stored on
908909
Humanloop.
910+
default: true
909911
source_datapoint_id:
910912
type: optional<string>
911913
docs: >-
@@ -942,12 +944,14 @@ service:
942944
docs: >-
943945
If true, tokens will be sent as data-only server-sent events. If
944946
num_samples > 1, samples are streamed back independently.
947+
default: false
945948
return_inputs:
946949
type: optional<boolean>
947950
docs: >-
948951
Whether to return the inputs in the response. If false, the
949952
response will contain an empty dictionary under inputs. This is
950953
useful for reducing the size of the response. Defaults to true.
954+
default: true
951955
logprobs:
952956
type: optional<integer>
953957
docs: >-

.mock/definition/tools.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ service:
578578
docs: >-
579579
Whether the request/response payloads will be stored on
580580
Humanloop.
581+
default: true
581582
source_datapoint_id:
582583
type: optional<string>
583584
docs: >-

.mock/fern.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"organization" : "humanloop",
3-
"version" : "0.31.9"
3+
"version" : "0.31.13"
44
}

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,24 @@ client = Humanloop(...,
115115
)
116116
```
117117

118+
## Pagination
119+
120+
Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used as generators for the underlying object.
121+
122+
```python
123+
from humanloop.client import Humanloop
124+
125+
client = Humanloop(
126+
api_key="YOUR_API_KEY",
127+
)
128+
response = client.prompts.list_prompts()
129+
for item in response:
130+
yield item
131+
# alternatively, you can paginate page-by-page
132+
for page in response.iter_pages():
133+
yield page
134+
```
135+
118136
## Contributing
119137

120138
While we value open-source contributions to this SDK, this library is generated programmatically.

poetry.lock

Lines changed: 97 additions & 96 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)