You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally langchain tools default to having an empty string as a description. Some (maybe all) bedrock models require a filled description, which affects the ease of use of with_structured_output(method="function_calling") and bind_tools with ChatBedrock
In particular, this impacts model interoperability, where people are trying their tools with different models, and the bedrock versions simply fail.
Some ideas:
populate the description with the same as the tool name by default in bedrock to avoid the error
raise a more descriptive error to help people populate docstrings on their tool function/basemodel/etc
I'm probably more in favor of auto populating for models this impacts
Generally langchain tools default to having an empty string as a description. Some (maybe all) bedrock models require a filled description, which affects the ease of use of
with_structured_output(method="function_calling")
andbind_tools
withChatBedrock
In particular, this impacts model interoperability, where people are trying their tools with different models, and the bedrock versions simply fail.
Some ideas:
I'm probably more in favor of auto populating for models this impacts
cc @hinthornw
The text was updated successfully, but these errors were encountered: