langchain
acddfc77 - core: allow artifact in create_retriever_tool (#28903)

Commit
1 year ago
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>
Author
Parents
Loading