mirror of
https://github.com/hwchase17/langchain.git
synced 2026-07-15 07:00:38 +00:00
Apply patch [skip ci]
This commit is contained in:
@@ -62,8 +62,7 @@ class ContextCapturingRunnable(Runnable[str, str]):
|
||||
self, input: str, config: Optional[RunnableConfig] = None, **kwargs: Any
|
||||
) -> str:
|
||||
"""Process input and capture context."""
|
||||
import threading
|
||||
from contextvars import copy_context
|
||||
del config, kwargs # Unused but required by interface
|
||||
|
||||
# Capture current context and thread info
|
||||
context_id = id(copy_context())
|
||||
@@ -310,3 +309,4 @@ if __name__ == "__main__":
|
||||
test_batch_single_input()
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user