File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 55
66from humanloop .otel .constants import (
77 HUMANLOOP_CONTEXT_EVALUATION ,
8- HUMANLOOP_CONTEXT_PROMPT_PATH ,
8+ HUMANLOOP_CONTEXT_PROMPT ,
99 HUMANLOOP_CONTEXT_TRACE_ID ,
1010)
1111
@@ -34,7 +34,7 @@ class PromptContext:
3434
3535
3636def set_prompt_context (prompt_context : PromptContext ) -> ResetToken :
37- key = hash ((HUMANLOOP_CONTEXT_PROMPT_PATH , threading .get_ident ()))
37+ key = hash ((HUMANLOOP_CONTEXT_PROMPT , threading .get_ident ()))
3838 return context_api .attach (
3939 context_api .set_value (
4040 key = key ,
@@ -48,7 +48,7 @@ def reset_prompt_context(token: ResetToken):
4848
4949
5050def get_prompt_context () -> Optional [PromptContext ]:
51- key = hash ((HUMANLOOP_CONTEXT_PROMPT_PATH , threading .get_ident ()))
51+ key = hash ((HUMANLOOP_CONTEXT_PROMPT , threading .get_ident ()))
5252 return context_api .get_value (key )
5353
5454
Original file line number Diff line number Diff line change 66HUMANLOOP_FILE_TYPE_KEY = "humanloop.file.type"
77HUMANLOOP_PATH_KEY = "humanloop.file.path"
88# Opentelemetry context
9- HUMANLOOP_CONTEXT_PROMPT_PATH = "humanloop.context.prompt.path "
9+ HUMANLOOP_CONTEXT_PROMPT = "humanloop.context.prompt"
1010HUMANLOOP_CONTEXT_TRACE_ID = "humanloop.context.flow.trace_id"
1111HUMANLOOP_CONTEXT_EVALUATION = "humanloop.context.evaluation"
You can’t perform that action at this time.
0 commit comments