community[minor]: Add tools calls to ChatEdenAI (#22320)

### Description  
Add tools implementation to `ChatEdenAI`:
- `bind_tools()`
- `with_structured_output()`

### Documentation 
Updated `docs/docs/integrations/chat/edenai.ipynb`

### Notes
We don´t support stream with tools as of yet. If stream is called with
tools we directly yield the whole message from `generate` (implemented
the same way as Anthropic did).
This commit is contained in:
KyrianC
2024-06-04 19:29:28 +02:00
committed by GitHub
parent 9d4350e69a
commit 03178ee74f
4 changed files with 518 additions and 19 deletions

View File

@@ -96,6 +96,12 @@ CHAT_MODEL_FEAT_TABLE = {
"package": "langchain-community",
"link": "/docs/integrations/chat/vllm/",
},
"ChatEdenAI": {
"tool_calling": True,
"structured_output": True,
"package": "langchain-community",
"link": "/docs/integrations/chat/edenai/",
},
}