Skip to content

Commit 6f41b5a

Browse files
committed
Remove the populate_template utility to favor the API call /prompt/populate.Ï
1 parent aafae57 commit 6f41b5a

File tree

18 files changed

+3140
-2
lines changed

18 files changed

+3140
-2
lines changed
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)