Skip to content

Commit

Permalink
update tool_call
Browse files Browse the repository at this point in the history
  • Loading branch information
Lycnkd committed Dec 25, 2024
1 parent 99aa194 commit 44edb56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/core/langchain_core/messages/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from langchain_core.messages.base import BaseMessage, BaseMessageChunk, merge_content
from langchain_core.utils._merge import merge_dicts, merge_obj
import re


class ToolOutputMixin:
Expand Down Expand Up @@ -210,6 +209,7 @@ class ToolCall(TypedDict):


def tool_call(*, name: str, args: dict[str, Any], id: Optional[str]) -> ToolCall:
import re
if isinstance(args, str):
try:
# Extract JSON-like dictionary from string using regex
Expand Down

0 comments on commit 44edb56

Please sign in to comment.