Skip to content

Commit 39367ac

Browse files
committed
Release 0.8.18b2
1 parent a6fde1a commit 39367ac

18 files changed

+345
-119
lines changed

poetry.lock

Lines changed: 173 additions & 114 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.18"
3+
version = "0.8.18b2"
44
description = ""
55
readme = "README.md"
66
authors = []

reference.md

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,14 @@ Controls how the model uses tools. The following options are supported:
338338
<dl>
339339
<dd>
340340

341+
**log_id:** `typing.Optional[str]` — This will identify a Log. If you don't provide a Log ID, Humanloop will generate one for you.
342+
343+
</dd>
344+
</dl>
345+
346+
<dl>
347+
<dd>
348+
341349
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
342350

343351
</dd>
@@ -677,6 +685,7 @@ response = client.prompts.call_stream(
677685
user="string",
678686
prompts_call_stream_request_environment="string",
679687
save=True,
688+
log_id="string",
680689
provider_api_keys={
681690
"openai": "string",
682691
"ai_21": "string",
@@ -851,6 +860,14 @@ Controls how the model uses tools. The following options are supported:
851860
<dl>
852861
<dd>
853862

863+
**log_id:** `typing.Optional[str]` — This will identify a Log. If you don't provide a Log ID, Humanloop will generate one for you.
864+
865+
</dd>
866+
</dl>
867+
868+
<dl>
869+
<dd>
870+
854871
**provider_api_keys:** `typing.Optional[ProviderApiKeysParams]` — API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization.
855872

856873
</dd>
@@ -1109,6 +1126,14 @@ Controls how the model uses tools. The following options are supported:
11091126
<dl>
11101127
<dd>
11111128

1129+
**log_id:** `typing.Optional[str]` — This will identify a Log. If you don't provide a Log ID, Humanloop will generate one for you.
1130+
1131+
</dd>
1132+
</dl>
1133+
1134+
<dl>
1135+
<dd>
1136+
11121137
**provider_api_keys:** `typing.Optional[ProviderApiKeysParams]` — API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization.
11131138

11141139
</dd>
@@ -1327,6 +1352,12 @@ client.prompts.upsert(
13271352
provider="openai",
13281353
max_tokens=-1,
13291354
temperature=0.7,
1355+
top_p=1.0,
1356+
presence_penalty=0.0,
1357+
frequency_penalty=0.0,
1358+
other={},
1359+
tools=[],
1360+
linked_tools=[],
13301361
commit_message="Initial commit",
13311362
)
13321363

@@ -2597,6 +2628,14 @@ client.tools.log(
25972628
<dl>
25982629
<dd>
25992630

2631+
**log_id:** `typing.Optional[str]` — This will identify a Log. If you don't provide a Log ID, Humanloop will generate one for you.
2632+
2633+
</dd>
2634+
</dl>
2635+
2636+
<dl>
2637+
<dd>
2638+
26002639
**tool:** `typing.Optional[ToolKernelRequestParams]` — Details of your Tool. A new Tool version will be created if the provided details are new.
26012640

26022641
</dd>
@@ -5395,6 +5434,14 @@ client.evaluators.log(
53955434
<dl>
53965435
<dd>
53975436

5437+
**log_id:** `typing.Optional[str]` — This will identify a Log. If you don't provide a Log ID, Humanloop will generate one for you.
5438+
5439+
</dd>
5440+
</dl>
5441+
5442+
<dl>
5443+
<dd>
5444+
53985445
**judgment:** `typing.Optional[CreateEvaluatorLogRequestJudgmentParams]` — Evaluator assessment of the Log.
53995446

54005447
</dd>
@@ -6764,7 +6811,7 @@ client.flows.log(
67646811
<dl>
67656812
<dd>
67666813

6767-
**log_id:** `typing.Optional[str]`The identifier for the Log. If not specified, a default ID will be generated. This allows additional Logs to be appended to the trace without waiting for Humanloop to return an ID.
6814+
**log_id:** `typing.Optional[str]`This will identify a Log. If you don't provide a Log ID, Humanloop will generate one for you.
67686815

67696816
</dd>
67706817
</dl>
@@ -7298,6 +7345,8 @@ Update the status, inputs, output of a Flow Log.
72987345

72997346
Marking a Flow Log as complete will trigger any monitoring Evaluators to run.
73007347
Inputs and output (or error) must be provided in order to mark it as complete.
7348+
7349+
The end_time log attribute will be set to match the time the log is marked as complete.
73017350
</dd>
73027351
</dl>
73037352
</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.18",
19+
"X-Fern-SDK-Version": "0.8.18b2",
2020
}
2121
headers["X-API-KEY"] = self.api_key
2222
return headers

src/humanloop/evaluators/client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def log(
6565
user: typing.Optional[str] = OMIT,
6666
create_evaluator_log_request_environment: typing.Optional[str] = OMIT,
6767
save: typing.Optional[bool] = OMIT,
68+
log_id: typing.Optional[str] = OMIT,
6869
judgment: typing.Optional[CreateEvaluatorLogRequestJudgmentParams] = OMIT,
6970
marked_completed: typing.Optional[bool] = OMIT,
7071
spec: typing.Optional[CreateEvaluatorLogRequestSpecParams] = OMIT,
@@ -143,6 +144,9 @@ def log(
143144
save : typing.Optional[bool]
144145
Whether the request/response payloads will be stored on Humanloop.
145146
147+
log_id : typing.Optional[str]
148+
This will identify a Log. If you don't provide a Log ID, Humanloop will generate one for you.
149+
146150
judgment : typing.Optional[CreateEvaluatorLogRequestJudgmentParams]
147151
Evaluator assessment of the Log.
148152
@@ -198,6 +202,7 @@ def log(
198202
"user": user,
199203
"environment": create_evaluator_log_request_environment,
200204
"save": save,
205+
"log_id": log_id,
201206
"judgment": convert_and_respect_annotation_metadata(
202207
object_=judgment, annotation=CreateEvaluatorLogRequestJudgmentParams, direction="write"
203208
),
@@ -1148,6 +1153,7 @@ async def log(
11481153
user: typing.Optional[str] = OMIT,
11491154
create_evaluator_log_request_environment: typing.Optional[str] = OMIT,
11501155
save: typing.Optional[bool] = OMIT,
1156+
log_id: typing.Optional[str] = OMIT,
11511157
judgment: typing.Optional[CreateEvaluatorLogRequestJudgmentParams] = OMIT,
11521158
marked_completed: typing.Optional[bool] = OMIT,
11531159
spec: typing.Optional[CreateEvaluatorLogRequestSpecParams] = OMIT,
@@ -1226,6 +1232,9 @@ async def log(
12261232
save : typing.Optional[bool]
12271233
Whether the request/response payloads will be stored on Humanloop.
12281234
1235+
log_id : typing.Optional[str]
1236+
This will identify a Log. If you don't provide a Log ID, Humanloop will generate one for you.
1237+
12291238
judgment : typing.Optional[CreateEvaluatorLogRequestJudgmentParams]
12301239
Evaluator assessment of the Log.
12311240
@@ -1289,6 +1298,7 @@ async def main() -> None:
12891298
"user": user,
12901299
"environment": create_evaluator_log_request_environment,
12911300
"save": save,
1301+
"log_id": log_id,
12921302
"judgment": convert_and_respect_annotation_metadata(
12931303
object_=judgment, annotation=CreateEvaluatorLogRequestJudgmentParams, direction="write"
12941304
),

src/humanloop/flows/client.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def log(
154154
Whether the request/response payloads will be stored on Humanloop.
155155
156156
log_id : typing.Optional[str]
157-
The identifier for the Log. If not specified, a default ID will be generated. This allows additional Logs to be appended to the trace without waiting for Humanloop to return an ID.
157+
This will identify a Log. If you don't provide a Log ID, Humanloop will generate one for you.
158158
159159
flow : typing.Optional[FlowKernelRequestParams]
160160
Flow used to generate the Trace.
@@ -708,6 +708,8 @@ def update_log(
708708
Marking a Flow Log as complete will trigger any monitoring Evaluators to run.
709709
Inputs and output (or error) must be provided in order to mark it as complete.
710710
711+
The end_time log attribute will be set to match the time the log is marked as complete.
712+
711713
Parameters
712714
----------
713715
log_id : str
@@ -1384,7 +1386,7 @@ async def log(
13841386
Whether the request/response payloads will be stored on Humanloop.
13851387
13861388
log_id : typing.Optional[str]
1387-
The identifier for the Log. If not specified, a default ID will be generated. This allows additional Logs to be appended to the trace without waiting for Humanloop to return an ID.
1389+
This will identify a Log. If you don't provide a Log ID, Humanloop will generate one for you.
13881390
13891391
flow : typing.Optional[FlowKernelRequestParams]
13901392
Flow used to generate the Trace.
@@ -1985,6 +1987,8 @@ async def update_log(
19851987
Marking a Flow Log as complete will trigger any monitoring Evaluators to run.
19861988
Inputs and output (or error) must be provided in order to mark it as complete.
19871989
1990+
The end_time log attribute will be set to match the time the log is marked as complete.
1991+
19881992
Parameters
19891993
----------
19901994
log_id : str

0 commit comments

Comments
 (0)