Skip to content

Commit 8cf3f81

Browse files
typing
1 parent 181d5cb commit 8cf3f81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sentry_sdk/integrations/langchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ def _record_token_usage(span: "Span", response: "Any") -> None:
754754
span.set_data(SPANDATA.GEN_AI_USAGE_TOTAL_TOKENS, total_tokens)
755755

756756

757-
def _get_available_tools(obj: "Any") -> "tuple[Optional[str], Optional[List[Any]]]":
757+
def _get_available_tools(obj: "Any") -> "Optional[List[Any]]":
758758
"""
759759
Get the agent name and available tools for the agent.
760760
"""
@@ -772,7 +772,7 @@ def _get_available_tools(obj: "Any") -> "tuple[Optional[str], Optional[List[Any]
772772
return tools
773773

774774

775-
def _get_run_name(obj: "Any", args: "Any"):
775+
def _get_run_name(obj: "Any", args: "Any") -> "Optional[str]":
776776
agent = getattr(obj, "agent", None)
777777
runnable = getattr(agent, "runnable", None)
778778
runnable_config = getattr(runnable, "config", {})

0 commit comments

Comments
 (0)