Skip to content

Commit 6871044

Browse files
committed
Release 0.8.24
1 parent 6bf0d89 commit 6871044

File tree

13 files changed

+84
-42
lines changed

13 files changed

+84
-42
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "humanloop"
3-
version = "0.8.23"
3+
version = "0.8.24"
44
description = ""
55
readme = "README.md"
66
authors = []

reference.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9769,6 +9769,14 @@ client.evaluations.get_logs(
97699769
<dl>
97709770
<dd>
97719771

9772+
**run_id:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Filter by Run IDs. Only Logs for the specified Runs will be returned.
9773+
9774+
</dd>
9775+
</dl>
9776+
9777+
<dl>
9778+
<dd>
9779+
97729780
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
97739781

97749782
</dd>
@@ -9942,6 +9950,14 @@ for page in response.iter_pages():
99429950
<dl>
99439951
<dd>
99449952

9953+
**include_trace_children:** `typing.Optional[bool]` — If true, populate `trace_children` for the retrieved Logs. Only applicable when retrieving Flow Logs.
9954+
9955+
</dd>
9956+
</dl>
9957+
9958+
<dl>
9959+
<dd>
9960+
99459961
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
99469962

99479963
</dd>

src/humanloop/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1616
headers: typing.Dict[str, str] = {
1717
"X-Fern-Language": "Python",
1818
"X-Fern-SDK-Name": "humanloop",
19-
"X-Fern-SDK-Version": "0.8.23",
19+
"X-Fern-SDK-Version": "0.8.24",
2020
}
2121
headers["X-API-KEY"] = self.api_key
2222
return headers

src/humanloop/evaluations/client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ def get_logs(
992992
*,
993993
page: typing.Optional[int] = None,
994994
size: typing.Optional[int] = None,
995+
run_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
995996
request_options: typing.Optional[RequestOptions] = None,
996997
) -> PaginatedDataEvaluationLogResponse:
997998
"""
@@ -1010,6 +1011,9 @@ def get_logs(
10101011
size : typing.Optional[int]
10111012
Page size for pagination. Number of Logs to fetch.
10121013
1014+
run_id : typing.Optional[typing.Union[str, typing.Sequence[str]]]
1015+
Filter by Run IDs. Only Logs for the specified Runs will be returned.
1016+
10131017
request_options : typing.Optional[RequestOptions]
10141018
Request-specific configuration.
10151019
@@ -1035,6 +1039,7 @@ def get_logs(
10351039
params={
10361040
"page": page,
10371041
"size": size,
1042+
"run_id": run_id,
10381043
},
10391044
request_options=request_options,
10401045
)
@@ -2131,6 +2136,7 @@ async def get_logs(
21312136
*,
21322137
page: typing.Optional[int] = None,
21332138
size: typing.Optional[int] = None,
2139+
run_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
21342140
request_options: typing.Optional[RequestOptions] = None,
21352141
) -> PaginatedDataEvaluationLogResponse:
21362142
"""
@@ -2149,6 +2155,9 @@ async def get_logs(
21492155
size : typing.Optional[int]
21502156
Page size for pagination. Number of Logs to fetch.
21512157
2158+
run_id : typing.Optional[typing.Union[str, typing.Sequence[str]]]
2159+
Filter by Run IDs. Only Logs for the specified Runs will be returned.
2160+
21522161
request_options : typing.Optional[RequestOptions]
21532162
Request-specific configuration.
21542163
@@ -2182,6 +2191,7 @@ async def main() -> None:
21822191
params={
21832192
"page": page,
21842193
"size": size,
2194+
"run_id": run_id,
21852195
},
21862196
request_options=request_options,
21872197
)

src/humanloop/logs/client.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def list(
3939
include_parent: typing.Optional[bool] = None,
4040
in_trace_filter: typing.Optional[typing.Union[bool, typing.Sequence[bool]]] = None,
4141
sample: typing.Optional[int] = None,
42+
include_trace_children: typing.Optional[bool] = None,
4243
request_options: typing.Optional[RequestOptions] = None,
4344
) -> SyncPager[LogResponse]:
4445
"""
@@ -85,6 +86,9 @@ def list(
8586
sample : typing.Optional[int]
8687
If provided, limit the response to a random subset of logs from the filtered results. (This will be an approximate sample, not a strict limit.)
8788
89+
include_trace_children : typing.Optional[bool]
90+
If true, populate `trace_children` for the retrieved Logs. Only applicable when retrieving Flow Logs.
91+
8892
request_options : typing.Optional[RequestOptions]
8993
Request-specific configuration.
9094
@@ -128,6 +132,7 @@ def list(
128132
"include_parent": include_parent,
129133
"in_trace_filter": in_trace_filter,
130134
"sample": sample,
135+
"include_trace_children": include_trace_children,
131136
},
132137
request_options=request_options,
133138
)
@@ -155,6 +160,7 @@ def list(
155160
include_parent=include_parent,
156161
in_trace_filter=in_trace_filter,
157162
sample=sample,
163+
include_trace_children=include_trace_children,
158164
request_options=request_options,
159165
)
160166
_items = _parsed_response.records
@@ -308,6 +314,7 @@ async def list(
308314
include_parent: typing.Optional[bool] = None,
309315
in_trace_filter: typing.Optional[typing.Union[bool, typing.Sequence[bool]]] = None,
310316
sample: typing.Optional[int] = None,
317+
include_trace_children: typing.Optional[bool] = None,
311318
request_options: typing.Optional[RequestOptions] = None,
312319
) -> AsyncPager[LogResponse]:
313320
"""
@@ -354,6 +361,9 @@ async def list(
354361
sample : typing.Optional[int]
355362
If provided, limit the response to a random subset of logs from the filtered results. (This will be an approximate sample, not a strict limit.)
356363
364+
include_trace_children : typing.Optional[bool]
365+
If true, populate `trace_children` for the retrieved Logs. Only applicable when retrieving Flow Logs.
366+
357367
request_options : typing.Optional[RequestOptions]
358368
Request-specific configuration.
359369
@@ -405,6 +415,7 @@ async def main() -> None:
405415
"include_parent": include_parent,
406416
"in_trace_filter": in_trace_filter,
407417
"sample": sample,
418+
"include_trace_children": include_trace_children,
408419
},
409420
request_options=request_options,
410421
)
@@ -432,6 +443,7 @@ async def main() -> None:
432443
include_parent=include_parent,
433444
in_trace_filter=in_trace_filter,
434445
sample=sample,
446+
include_trace_children=include_trace_children,
435447
request_options=request_options,
436448
)
437449
_items = _parsed_response.records

src/humanloop/requests/create_datapoint_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class CreateDatapointRequestParams(typing_extensions.TypedDict):
11-
inputs: typing_extensions.NotRequired[typing.Dict[str, typing.Optional[typing.Any]]]
11+
inputs: typing_extensions.NotRequired[typing.Dict[str, str]]
1212
"""
1313
The inputs to the prompt template.
1414
"""

src/humanloop/requests/datapoint_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class DatapointResponseParams(typing_extensions.TypedDict):
11-
inputs: typing_extensions.NotRequired[typing.Dict[str, typing.Optional[typing.Any]]]
11+
inputs: typing_extensions.NotRequired[typing.Dict[str, str]]
1212
"""
1313
The inputs to the prompt template.
1414
"""

src/humanloop/requests/provider_api_keys.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class ProviderApiKeysParams(typing_extensions.TypedDict):
1010
ai_21: typing_extensions.NotRequired[typing_extensions.Annotated[str, FieldMetadata(alias="ai21")]]
1111
mock: typing_extensions.NotRequired[str]
1212
anthropic: typing_extensions.NotRequired[str]
13+
deepseek: typing_extensions.NotRequired[str]
1314
bedrock: typing_extensions.NotRequired[str]
1415
cohere: typing_extensions.NotRequired[str]
1516
openai_azure: typing_extensions.NotRequired[str]

0 commit comments

Comments
 (0)