Replies: 1 comment
-
@dovstern the messages are always accessible to the downstream nodes in any graph that uses messages, so you should be able to access the artifacts through the tool messages in the graph state. is that not enough for your use case? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Request
Add support for tools with
response_format="content_and_artifact"
in LangGraph's ToolNode and create_react_agent, enabling multimodal tools that return both text (for LLM consumption) and images/artifacts (for downstream usage).Current Behavior
When using tools with LangGraph's
create_react_agent
, tool artifacts in ToolMessages aren't fully supported. While LangChain tools can return both content (text) and artifact (images, data structures), only the content portion is properly handled in the ToolNode workflow.Current code in
tool_node.py
only processes the content:The artifact remains in the ToolMessage but isn't integrated into the agent workflow beyond basic storage.
Requested Enhancement
Enhance ToolNode to properly support tools with the
@tool(response_format="content_and_artifact")
decorator, ensuring:Example Use Case
With proper support, the agent would:
Benefits
Potential Implementation Approach
The enhancement could:
Thank you for considering this feature request!
Beta Was this translation helpful? Give feedback.
All reactions