Test bind tools with Pydantic models.
Test that chat model correctly handles Pydantic models that are passed
into bind_tools. Test is skipped if the has_tool_calling property
on the test class is False.
If this test fails, ensure that the model's bind_tools method
properly handles Pydantic V2 models.
langchain_core implements a utility function.
that will accommodate most formats.
See example implementation.
of with_structured_output.
test_bind_tool_pydantic(
self,
model: BaseChatModel,
my_adder_tool: BaseTool
) -> None