ToolsIntegrationTests()Returns a dictionary representing the "args" of an example tool call.
Base class for tools integration tests.
Test invoke matches output schema.
If invoked with a ToolCall, the tool should return a valid ToolMessage
content.
If you have followed the custom tool guide,
this test should always pass because ToolCall inputs are handled by the
langchain_core.tools.BaseTool class.
If you have not followed this guide, you should ensure that your tool's
invoke method returns a valid ToolMessage content when it receives
a dict representing a ToolCall as input (as opposed to distinct args).
Test async invoke matches output schema.
If ainvoked with a ToolCall, the tool should return a valid ToolMessage
content.
For debugging tips, see test_invoke_matches_output_schema.
Test invoke without ToolCall.
If invoked without a ToolCall, the tool can return anything
but it shouldn't throw an error.
If this test fails, your tool may not be handling the input you defined
in tool_invoke_params_example correctly, and it's throwing an error.
This test doesn't have any checks. It's just to ensure that the tool
doesn't throw an error when invoked with a dict of **kwargs.
Test async invoke without ToolCall.
If ainvoked without a ToolCall, the tool can return anything
but it shouldn't throw an error.
For debugging tips, see test_invoke_no_tool_call.