langchain-ai / langchain-databricks

MIT License
5 stars 6 forks source link

Raise an error when an empty tool list is passed to `bind_tools` #38

Open B-Step62 opened 2 weeks ago

B-Step62 commented 2 weeks ago

When an empty tools is passed to bind_tools, ChatDatabricks does not complain about it and the agent just runs fine, but in unexpected way (no tool usage). We can catch it earlier in the class and fail first, similar to what ChatOpenAI does.