Skip to content

Dereference refs if tool_schema is dict #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 31, 2025

Conversation

apotheque
Copy link
Contributor

Столкнулся с тем, что langchain-mcp-adapters возвращает тулы со схемой в формате json.
При подключении таких тулов к гигачату через bind_tools() не происходит дереференс ссылок, и вызов не проходит валидацию в апи гигачата.

@Rai220
Copy link
Collaborator

Rai220 commented Mar 31, 2025

Спасибо за PR, ценное замечание!

@Rai220 Rai220 merged commit 8406f2e into ai-forever:master Mar 31, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants