How to use 'artifact' attribute in ToolMessage to output both text and image? #3443
-
Issue with current documentation:In https://python.langchain.com/api_reference/core/messages/langchain_core.messages.tool.ToolMessage.html, it introduces the concept of 'arifact' and give a simple example:
, Idea or request for content:No response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@Cybertyann i recommend checking out this conceptual guide https://python.langchain.com/docs/concepts/tools/#tool-artifacts. the API page is a bit misleading -- you would typically just return tool message content and artifact directly from the tool, as is shown in the concept doc |
Beta Was this translation helpful? Give feedback.
@Cybertyann i recommend checking out this conceptual guide https://python.langchain.com/docs/concepts/tools/#tool-artifacts. the API page is a bit misleading -- you would typically just return tool message content and artifact directly from the tool, as is shown in the concept doc