Skip to content

Commit 17a4036

Browse files
committed
Release 0.8.28
1 parent 82a395b commit 17a4036

16 files changed

+716
-214
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 6 additions & 5 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.27"
6+
version = "0.8.28"
77
description = ""
88
readme = "README.md"
99
authors = []
@@ -35,6 +35,7 @@ Repository = 'https://github.com/humanloop/humanloop-python'
3535

3636
[tool.poetry.dependencies]
3737
python = ">=3.9,<4"
38+
deepdiff = "^8.2.0"
3839
httpx = ">=0.21.2"
3940
httpx-sse = "0.4.0"
4041
mmh3 = "^5.1.0"
@@ -45,18 +46,17 @@ opentelemetry-instrumentation-cohere = ">=0.20"
4546
opentelemetry-instrumentation-groq = ">=0.29"
4647
opentelemetry-instrumentation-openai = ">=0.20"
4748
opentelemetry-instrumentation-replicate = ">=0.20"
49+
opentelemetry-proto = "^1.30.0"
4850
opentelemetry-sdk = "<=1.27.0"
4951
parse = ">=1"
52+
protobuf = "^5.29.3"
5053
pydantic = ">= 1.9.2"
5154
pydantic-core = "^2.18.2"
5255
typing_extensions = ">= 4.0.0"
53-
opentelemetry-proto = "^1.30.0"
54-
protobuf = "^5.29.3"
5556

5657
[tool.poetry.dev-dependencies]
5758
mypy = "1.0.1"
5859
pytest = "^7.4.0"
59-
types-protobuf = "^5.29.1.20250208"
6060
pytest-asyncio = "^0.23.5"
6161
python-dateutil = "^2.9.0"
6262
types-python-dateutil = "^2.9.0.20240316"
@@ -74,6 +74,7 @@ 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"
7778

7879
[tool.pytest.ini_options]
7980
testpaths = [ "tests" ]
@@ -88,4 +89,4 @@ line-length = 120
8889

8990
[build-system]
9091
requires = ["poetry-core"]
91-
build-backend = "poetry.core.masonry.api"
92+
build-backend = "poetry.core.masonry.api"

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ 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
1213
opentelemetry-sdk<=1.27.0
1314
parse>=1
15+
protobuf==^5.29.3
1416
pydantic>= 1.9.2
1517
pydantic-core==^2.18.2
1618
typing_extensions>= 4.0.0

src/humanloop/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@
109109
PaginatedPromptLogResponse,
110110
PaginatedSessionResponse,
111111
PlatformAccessEnum,
112+
PopulateTemplateResponse,
113+
PopulateTemplateResponsePopulatedTemplate,
114+
PopulateTemplateResponseStop,
115+
PopulateTemplateResponseTemplate,
112116
ProjectSortBy,
113117
PromptCallLogResponse,
114118
PromptCallResponse,
@@ -278,6 +282,10 @@
278282
PaginatedDatapointResponseParams,
279283
PaginatedDatasetResponseParams,
280284
PaginatedEvaluationResponseParams,
285+
PopulateTemplateResponseParams,
286+
PopulateTemplateResponsePopulatedTemplateParams,
287+
PopulateTemplateResponseStopParams,
288+
PopulateTemplateResponseTemplateParams,
281289
PromptCallLogResponseParams,
282290
PromptCallResponseParams,
283291
PromptCallResponseToolChoiceParams,
@@ -526,6 +534,14 @@
526534
"PaginatedPromptLogResponse",
527535
"PaginatedSessionResponse",
528536
"PlatformAccessEnum",
537+
"PopulateTemplateResponse",
538+
"PopulateTemplateResponseParams",
539+
"PopulateTemplateResponsePopulatedTemplate",
540+
"PopulateTemplateResponsePopulatedTemplateParams",
541+
"PopulateTemplateResponseStop",
542+
"PopulateTemplateResponseStopParams",
543+
"PopulateTemplateResponseTemplate",
544+
"PopulateTemplateResponseTemplateParams",
529545
"ProjectSortBy",
530546
"PromptCallLogResponse",
531547
"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.27",
19+
"X-Fern-SDK-Version": "0.8.28",
2020
}
2121
headers["X-API-KEY"] = self.api_key
2222
return headers

src/humanloop/prompts/client.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
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
4142
from ..types.version_status import VersionStatus
4243
from ..types.list_prompts import ListPrompts
4344
from ..types.file_environment_response import FileEnvironmentResponse
@@ -1526,7 +1527,7 @@ def populate_template(
15261527
version_id: typing.Optional[str] = None,
15271528
environment: typing.Optional[str] = None,
15281529
request_options: typing.Optional[RequestOptions] = None,
1529-
) -> PromptResponse:
1530+
) -> PopulateTemplateResponse:
15301531
"""
15311532
Retrieve the Prompt with the given ID, including the populated template.
15321533
@@ -1551,7 +1552,7 @@ def populate_template(
15511552
15521553
Returns
15531554
-------
1554-
PromptResponse
1555+
PopulateTemplateResponse
15551556
Successful Response
15561557
15571558
Examples
@@ -1580,9 +1581,9 @@ def populate_template(
15801581
try:
15811582
if 200 <= _response.status_code < 300:
15821583
return typing.cast(
1583-
PromptResponse,
1584+
PopulateTemplateResponse,
15841585
construct_type(
1585-
type_=PromptResponse, # type: ignore
1586+
type_=PopulateTemplateResponse, # type: ignore
15861587
object_=_response.json(),
15871588
),
15881589
)
@@ -3628,7 +3629,7 @@ async def populate_template(
36283629
version_id: typing.Optional[str] = None,
36293630
environment: typing.Optional[str] = None,
36303631
request_options: typing.Optional[RequestOptions] = None,
3631-
) -> PromptResponse:
3632+
) -> PopulateTemplateResponse:
36323633
"""
36333634
Retrieve the Prompt with the given ID, including the populated template.
36343635
@@ -3653,7 +3654,7 @@ async def populate_template(
36533654
36543655
Returns
36553656
-------
3656-
PromptResponse
3657+
PopulateTemplateResponse
36573658
Successful Response
36583659
36593660
Examples
@@ -3690,9 +3691,9 @@ async def main() -> None:
36903691
try:
36913692
if 200 <= _response.status_code < 300:
36923693
return typing.cast(
3693-
PromptResponse,
3694+
PopulateTemplateResponse,
36943695
construct_type(
3695-
type_=PromptResponse, # type: ignore
3696+
type_=PopulateTemplateResponse, # type: ignore
36963697
object_=_response.json(),
36973698
),
36983699
)

src/humanloop/requests/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@
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
96100
from .prompt_call_log_response import PromptCallLogResponseParams
97101
from .prompt_call_response import PromptCallResponseParams
98102
from .prompt_call_response_tool_choice import PromptCallResponseToolChoiceParams
@@ -214,6 +218,10 @@
214218
"PaginatedDatapointResponseParams",
215219
"PaginatedDatasetResponseParams",
216220
"PaginatedEvaluationResponseParams",
221+
"PopulateTemplateResponseParams",
222+
"PopulateTemplateResponsePopulatedTemplateParams",
223+
"PopulateTemplateResponseStopParams",
224+
"PopulateTemplateResponseTemplateParams",
217225
"PromptCallLogResponseParams",
218226
"PromptCallResponseParams",
219227
"PromptCallResponseToolChoiceParams",

0 commit comments

Comments
 (0)