Skip to content

Commit

Permalink
Rm extraneous args to the trace group helper (#5801)
Browse files Browse the repository at this point in the history
These are being ignored
  • Loading branch information
vowelparrot authored Jun 7, 2023
1 parent 8ef7274 commit 3af3694
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions langchain/callbacks/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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],
Expand Down

0 comments on commit 3af3694

Please sign in to comment.