Skip to content

Commit a0968a7

Browse files
olehvell-hAndrei Bratu
authored andcommitted
new poetry lock file
1 parent 7fc9900 commit a0968a7

File tree

20 files changed

+3243
-22
lines changed

20 files changed

+3243
-22
lines changed

poetry.lock

Lines changed: 105 additions & 19 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
@@ -3,7 +3,7 @@ name = "humanloop"
33

44
[tool.poetry]
55
name = "humanloop"
6-
version = "0.8.30"
6+
version = "0.8.31"
77
description = ""
88
readme = "README.md"
99
authors = []

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.30",
19+
"X-Fern-SDK-Version": "0.8.31",
2020
}
2121
headers["X-API-KEY"] = self.api_key
2222
return headers
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from .run import log_with_evaluation_context, run_eval
2+
from .types import File
3+
4+
__all__ = ["run_eval", "log_with_evaluation_context", "File"]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from typing import Callable, TypedDict
2+
3+
4+
class EvaluationContext(TypedDict):
5+
"""Context Log to Humanloop.
6+
7+
Per datapoint state that is set when an Evaluation is ran.
8+
"""
9+
10+
"""Required for associating a Log with the Evaluation Run."""
11+
source_datapoint_id: str
12+
13+
"""Overloaded .log method call."""
14+
upload_callback: Callable[[str], None]
15+
16+
"""ID of the evaluated File."""
17+
file_id: str
18+
19+
"""Path of the evaluated File."""
20+
path: str
21+
22+
"""Required for associating a Log with the Evaluation Run."""
23+
run_id: str
24+
25+
26+
EVALUATION_CONTEXT_VARIABLE_NAME = "__EVALUATION_CONTEXT"

0 commit comments

Comments
 (0)