-
Notifications
You must be signed in to change notification settings - Fork 15.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core[patch]: return ToolMessage from tool #28605
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
@@ -954,10 +972,31 @@ class InjectedToolArg: | |||
"""Annotation for a Tool arg that is **not** meant to be generated by a model.""" | |||
|
|||
|
|||
def _is_injected_arg_type(type_: type) -> bool: | |||
class InjectedToolCallId(InjectedToolArg): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we export this one from langchain_core.tools
?
@@ -9,7 +9,11 @@ | |||
from langchain_core.utils._merge import merge_dicts, merge_obj | |||
|
|||
|
|||
class ToolMessage(BaseMessage): | |||
class ToolOutputMixin: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you define what returning directly means in the doc-string?
No description provided.