langchain/libs/core/langchain_core/tools
Adrián Panella acddfc772e
core: allow artifact in create_retriever_tool (#28903)
Add option to return content and artifacts, to also be able to access
the full info of the retrieved documents.

They are returned as a list of dicts in the `artifacts` property if
parameter `response_format` is set to `"content_and_artifact"`.

Defaults to `"content"` to keep current behavior.

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2025-01-03 22:10:31 +00:00
..
__init__.py core[patch]: export InjectedToolCallId (#28772) 2024-12-17 19:29:20 +00:00
base.py core: dont mutate tool_kwargs during tool run (#28824) 2024-12-19 18:11:56 +00:00
convert.py core[patch]: Improve type checking for the tool decorator (#27460) 2024-10-29 13:59:56 +00:00
render.py core: Put Python version as a project requirement so it is considered by ruff (#26608) 2024-09-18 14:37:57 +00:00
retriever.py core: allow artifact in create_retriever_tool (#28903) 2025-01-03 22:10:31 +00:00
simple.py core[patch]: return ToolMessage from tool (#28605) 2024-12-10 09:59:38 +00:00
structured.py core: Add ruff rules for error messages (EM) (#26965) 2024-10-07 22:12:28 +00:00