langchain/libs/standard-tests/tests
Andrew Wason 22aa5e07ed
standard-tests: Fix ToolsIntegrationTests to correctly handle "content_and_artifact" tools (#29391)
**Description:**

The response from `tool.invoke()` is always a ToolMessage, with content
and artifact fields, not a tuple.
The tuple is converted to a ToolMessage here

b6ae7ca91d/libs/core/langchain_core/tools/base.py (L726)

**Issue:**

Currently `ToolsIntegrationTests` requires `invoke()` to return a tuple
and so standard tests fail for "content_and_artifact" tools. This fixes
that to check the returned ToolMessage.

This PR also adds a test that now passes.
2025-02-05 21:27:09 -05:00
..
integration_tests standard-tests: ci pipeline (#27923) 2024-11-05 20:55:38 +00:00
unit_tests standard-tests: Fix ToolsIntegrationTests to correctly handle "content_and_artifact" tools (#29391) 2025-02-05 21:27:09 -05:00