From 3af36943e8097ee4a41b89eb41fbe6baef78aceb Mon Sep 17 00:00:00 2001 From: Zander Chase <130414180+vowelparrot@users.noreply.github.com> Date: Wed, 7 Jun 2023 13:09:29 -0700 Subject: [PATCH] Rm extraneous args to the trace group helper (#5801) These are being ignored --- langchain/callbacks/manager.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/langchain/callbacks/manager.py b/langchain/callbacks/manager.py index 19e957d7..2069195f 100644 --- a/langchain/callbacks/manager.py +++ b/langchain/callbacks/manager.py @@ -133,15 +133,11 @@ def trace_as_chain_group( *, session_name: Optional[str] = None, example_id: Optional[Union[str, UUID]] = None, - tenant_id: Optional[str] = None, - session_extra: Optional[Dict[str, Any]] = None, ) -> Generator[CallbackManager, None, None]: """Get a callback manager for a chain group in a context manager.""" cb = LangChainTracer( - tenant_id=tenant_id, session_name=session_name, example_id=example_id, - session_extra=session_extra, ) cm = CallbackManager.configure( inheritable_callbacks=[cb], @@ -158,15 +154,11 @@ async def atrace_as_chain_group( *, session_name: Optional[str] = None, example_id: Optional[Union[str, UUID]] = None, - tenant_id: Optional[str] = None, - session_extra: Optional[Dict[str, Any]] = None, ) -> AsyncGenerator[AsyncCallbackManager, None]: """Get a callback manager for a chain group in a context manager.""" cb = LangChainTracer( - tenant_id=tenant_id, session_name=session_name, example_id=example_id, - session_extra=session_extra, ) cm = AsyncCallbackManager.configure( inheritable_callbacks=[cb],