Skip to content

Commit aafae57

Browse files
committed
Release 0.8.30
1 parent f4b5a13 commit aafae57

18 files changed

+1535
-806
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "humanloop"
33

44
[tool.poetry]
55
name = "humanloop"
6-
version = "0.8.29b1"
6+
version = "0.8.30"
77
description = ""
88
readme = "README.md"
99
authors = []
@@ -39,17 +39,15 @@ deepdiff = "^8.2.0"
3939
httpx = ">=0.21.2"
4040
httpx-sse = "0.4.0"
4141
mmh3 = "^5.1.0"
42-
opentelemetry-api = ">=1.27.0"
42+
opentelemetry-api = "<=1.27.0"
4343
opentelemetry-instrumentation-anthropic = ">=0.20"
4444
opentelemetry-instrumentation-bedrock = ">=0.15"
4545
opentelemetry-instrumentation-cohere = ">=0.20"
4646
opentelemetry-instrumentation-groq = ">=0.29"
4747
opentelemetry-instrumentation-openai = ">=0.20"
4848
opentelemetry-instrumentation-replicate = ">=0.20"
49-
opentelemetry-proto = ">=1.30.0"
50-
opentelemetry-sdk = ">=1.27.0"
49+
opentelemetry-sdk = "<=1.27.0"
5150
parse = ">=1"
52-
protobuf = ">=5.29.3"
5351
pydantic = ">= 1.9.2"
5452
pydantic-core = "^2.18.2"
5553
typing_extensions = ">= 4.0.0"
@@ -61,10 +59,12 @@ pytest-asyncio = "^0.23.5"
6159
python-dateutil = "^2.9.0"
6260
types-python-dateutil = "^2.9.0.20240316"
6361
anthropic = ">=0.37.1"
62+
chromadb = "^0.6.3"
6463
cohere = "^5.11.2"
6564
groq = ">=0.11.0"
6665
jsonschema = "^4.23.0"
6766
numpy = "<2.0.0"
67+
onnxruntime = "<=1.19.2"
6868
openai = "^1.52.2"
6969
pandas = "^2.2.0"
7070
parse-type = ">=0.6.4"
@@ -74,7 +74,6 @@ python-dotenv = "^1.0.1"
7474
replicate = "^1.0.3"
7575
ruff = "^0.5.6"
7676
types-jsonschema = "^4.23.0.20240813"
77-
types-protobuf = "^5.29.1.20250208"
7877

7978
[tool.pytest.ini_options]
8079
testpaths = [ "tests" ]

reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ client.prompts.log(
5656
messages=[{"role": "user", "content": "What really happened at Roswell?"}],
5757
inputs={"person": "Trump"},
5858
created_at=datetime.datetime.fromisoformat(
59-
"2024-07-19 00:29:35.178000+00:00",
59+
"2024-07-18 23:29:35.178000+00:00",
6060
),
6161
provider_latency=6.5931549072265625,
6262
output_message={
@@ -6760,10 +6760,10 @@ client.flows.log(
67606760
output="The patient is likely experiencing a myocardial infarction. Immediate medical attention is required.",
67616761
log_status="incomplete",
67626762
start_time=datetime.datetime.fromisoformat(
6763-
"2024-07-08 22:40:35+00:00",
6763+
"2024-07-08 21:40:35+00:00",
67646764
),
67656765
end_time=datetime.datetime.fromisoformat(
6766-
"2024-07-08 22:40:39+00:00",
6766+
"2024-07-08 21:40:39+00:00",
67676767
),
67686768
)
67696769

requirements.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@ deepdiff==^8.2.0
22
httpx>=0.21.2
33
httpx-sse==0.4.0
44
mmh3==^5.1.0
5-
opentelemetry-api>=1.27.0
5+
opentelemetry-api<=1.27.0
66
opentelemetry-instrumentation-anthropic>=0.20
77
opentelemetry-instrumentation-bedrock>=0.15
88
opentelemetry-instrumentation-cohere>=0.20
99
opentelemetry-instrumentation-groq>=0.29
1010
opentelemetry-instrumentation-openai>=0.20
1111
opentelemetry-instrumentation-replicate>=0.20
12-
opentelemetry-proto>=1.30.0
13-
opentelemetry-sdk>=1.27.0
12+
opentelemetry-sdk<=1.27.0
1413
parse>=1
15-
protobuf>=5.29.3
1614
pydantic>= 1.9.2
1715
pydantic-core==^2.18.2
1816
typing_extensions>= 4.0.0

src/humanloop/__init__.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@
109109
PaginatedPromptLogResponse,
110110
PaginatedSessionResponse,
111111
PlatformAccessEnum,
112-
PopulateTemplateResponse,
113-
PopulateTemplateResponsePopulatedTemplate,
114-
PopulateTemplateResponseStop,
115-
PopulateTemplateResponseTemplate,
116112
ProjectSortBy,
117113
PromptCallLogResponse,
118114
PromptCallResponse,
@@ -282,10 +278,6 @@
282278
PaginatedDatapointResponseParams,
283279
PaginatedDatasetResponseParams,
284280
PaginatedEvaluationResponseParams,
285-
PopulateTemplateResponseParams,
286-
PopulateTemplateResponsePopulatedTemplateParams,
287-
PopulateTemplateResponseStopParams,
288-
PopulateTemplateResponseTemplateParams,
289281
PromptCallLogResponseParams,
290282
PromptCallResponseParams,
291283
PromptCallResponseToolChoiceParams,
@@ -534,14 +526,6 @@
534526
"PaginatedPromptLogResponse",
535527
"PaginatedSessionResponse",
536528
"PlatformAccessEnum",
537-
"PopulateTemplateResponse",
538-
"PopulateTemplateResponseParams",
539-
"PopulateTemplateResponsePopulatedTemplate",
540-
"PopulateTemplateResponsePopulatedTemplateParams",
541-
"PopulateTemplateResponseStop",
542-
"PopulateTemplateResponseStopParams",
543-
"PopulateTemplateResponseTemplate",
544-
"PopulateTemplateResponseTemplateParams",
545529
"ProjectSortBy",
546530
"PromptCallLogResponse",
547531
"PromptCallLogResponseParams",

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.29b1",
19+
"X-Fern-SDK-Version": "0.8.30",
2020
}
2121
headers["X-API-KEY"] = self.api_key
2222
return headers

src/humanloop/flows/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ def log(
204204
output="The patient is likely experiencing a myocardial infarction. Immediate medical attention is required.",
205205
log_status="incomplete",
206206
start_time=datetime.datetime.fromisoformat(
207-
"2024-07-08 22:40:35+00:00",
207+
"2024-07-08 21:40:35+00:00",
208208
),
209209
end_time=datetime.datetime.fromisoformat(
210-
"2024-07-08 22:40:39+00:00",
210+
"2024-07-08 21:40:39+00:00",
211211
),
212212
)
213213
"""
@@ -1468,10 +1468,10 @@ async def main() -> None:
14681468
output="The patient is likely experiencing a myocardial infarction. Immediate medical attention is required.",
14691469
log_status="incomplete",
14701470
start_time=datetime.datetime.fromisoformat(
1471-
"2024-07-08 22:40:35+00:00",
1471+
"2024-07-08 21:40:35+00:00",
14721472
),
14731473
end_time=datetime.datetime.fromisoformat(
1474-
"2024-07-08 22:40:39+00:00",
1474+
"2024-07-08 21:40:39+00:00",
14751475
),
14761476
)
14771477

src/humanloop/prompts/client.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
from ..requests.response_format import ResponseFormatParams
3939
from ..types.reasoning_effort import ReasoningEffort
4040
from ..requests.tool_function import ToolFunctionParams
41-
from ..types.populate_template_response import PopulateTemplateResponse
4241
from ..types.version_status import VersionStatus
4342
from ..types.list_prompts import ListPrompts
4443
from ..types.file_environment_response import FileEnvironmentResponse
@@ -248,7 +247,7 @@ def log(
248247
messages=[{"role": "user", "content": "What really happened at Roswell?"}],
249248
inputs={"person": "Trump"},
250249
created_at=datetime.datetime.fromisoformat(
251-
"2024-07-19 00:29:35.178000+00:00",
250+
"2024-07-18 23:29:35.178000+00:00",
252251
),
253252
provider_latency=6.5931549072265625,
254253
output_message={
@@ -1527,7 +1526,7 @@ def populate_template(
15271526
version_id: typing.Optional[str] = None,
15281527
environment: typing.Optional[str] = None,
15291528
request_options: typing.Optional[RequestOptions] = None,
1530-
) -> PopulateTemplateResponse:
1529+
) -> PromptResponse:
15311530
"""
15321531
Retrieve the Prompt with the given ID, including the populated template.
15331532
@@ -1552,7 +1551,7 @@ def populate_template(
15521551
15531552
Returns
15541553
-------
1555-
PopulateTemplateResponse
1554+
PromptResponse
15561555
Successful Response
15571556
15581557
Examples
@@ -1581,9 +1580,9 @@ def populate_template(
15811580
try:
15821581
if 200 <= _response.status_code < 300:
15831582
return typing.cast(
1584-
PopulateTemplateResponse,
1583+
PromptResponse,
15851584
construct_type(
1586-
type_=PopulateTemplateResponse, # type: ignore
1585+
type_=PromptResponse, # type: ignore
15871586
object_=_response.json(),
15881587
),
15891588
)
@@ -2283,7 +2282,7 @@ async def main() -> None:
22832282
],
22842283
inputs={"person": "Trump"},
22852284
created_at=datetime.datetime.fromisoformat(
2286-
"2024-07-19 00:29:35.178000+00:00",
2285+
"2024-07-18 23:29:35.178000+00:00",
22872286
),
22882287
provider_latency=6.5931549072265625,
22892288
output_message={
@@ -3629,7 +3628,7 @@ async def populate_template(
36293628
version_id: typing.Optional[str] = None,
36303629
environment: typing.Optional[str] = None,
36313630
request_options: typing.Optional[RequestOptions] = None,
3632-
) -> PopulateTemplateResponse:
3631+
) -> PromptResponse:
36333632
"""
36343633
Retrieve the Prompt with the given ID, including the populated template.
36353634
@@ -3654,7 +3653,7 @@ async def populate_template(
36543653
36553654
Returns
36563655
-------
3657-
PopulateTemplateResponse
3656+
PromptResponse
36583657
Successful Response
36593658
36603659
Examples
@@ -3691,9 +3690,9 @@ async def main() -> None:
36913690
try:
36923691
if 200 <= _response.status_code < 300:
36933692
return typing.cast(
3694-
PopulateTemplateResponse,
3693+
PromptResponse,
36953694
construct_type(
3696-
type_=PopulateTemplateResponse, # type: ignore
3695+
type_=PromptResponse, # type: ignore
36973696
object_=_response.json(),
36983697
),
36993698
)

src/humanloop/requests/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@
9393
from .paginated_datapoint_response import PaginatedDatapointResponseParams
9494
from .paginated_dataset_response import PaginatedDatasetResponseParams
9595
from .paginated_evaluation_response import PaginatedEvaluationResponseParams
96-
from .populate_template_response import PopulateTemplateResponseParams
97-
from .populate_template_response_populated_template import PopulateTemplateResponsePopulatedTemplateParams
98-
from .populate_template_response_stop import PopulateTemplateResponseStopParams
99-
from .populate_template_response_template import PopulateTemplateResponseTemplateParams
10096
from .prompt_call_log_response import PromptCallLogResponseParams
10197
from .prompt_call_response import PromptCallResponseParams
10298
from .prompt_call_response_tool_choice import PromptCallResponseToolChoiceParams
@@ -218,10 +214,6 @@
218214
"PaginatedDatapointResponseParams",
219215
"PaginatedDatasetResponseParams",
220216
"PaginatedEvaluationResponseParams",
221-
"PopulateTemplateResponseParams",
222-
"PopulateTemplateResponsePopulatedTemplateParams",
223-
"PopulateTemplateResponseStopParams",
224-
"PopulateTemplateResponseTemplateParams",
225217
"PromptCallLogResponseParams",
226218
"PromptCallResponseParams",
227219
"PromptCallResponseToolChoiceParams",

0 commit comments

Comments
 (0)