Skip to content

Commit 8ac4b44

Browse files
authored
Adding scope and span_data doc strings (openai#463)
1 parent 97b4f9a commit 8ac4b44

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/agents/tracing/scope.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from ..logger import logger
66

77
if TYPE_CHECKING:
8-
from ..run import RunConfig
98
from .spans import Span
109
from .traces import Trace
1110

@@ -17,9 +16,6 @@
1716
"current_trace", default=None
1817
)
1918

20-
_current_run_config: contextvars.ContextVar["RunConfig | None"] = contextvars.ContextVar(
21-
"current_run_config", default=None
22-
)
2319

2420
class Scope:
2521
"""
@@ -51,17 +47,3 @@ def set_current_trace(cls, trace: "Trace | None") -> "contextvars.Token[Trace |
5147
def reset_current_trace(cls, token: "contextvars.Token[Trace | None]") -> None:
5248
logger.debug("Resetting current trace")
5349
_current_trace.reset(token)
54-
55-
@classmethod
56-
def get_current_run_config(cls) -> "RunConfig | None":
57-
return _current_run_config.get()
58-
59-
@classmethod
60-
def set_current_run_config(
61-
cls, run_config: "RunConfig | None"
62-
) -> "contextvars.Token[RunConfig | None]":
63-
return _current_run_config.set(run_config)
64-
65-
@classmethod
66-
def reset_current_run_config(cls, token: "contextvars.Token[RunConfig | None]") -> None:
67-
_current_run_config.reset(token)

0 commit comments

Comments
 (0)