8000 fixes issue 39 by valeriova96 · Pull Request #40 · grll/mcpadapt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fixes issue 39 #40

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fixes issue 39 #40

wants to merge 1 commit into from

Conversation

valeriova96
Copy link

Fixes

1. updated the create_model_from_json_schema function in mcpadapt/src/mcpadapt/utils/modeling.py to ensure types like Literal and Enum are correctly preserved in the generated input schema used by the CrewAI adapter. Thus items and anyOf are added to Field object in process_schema function.

2. created resolve_refs_and_remove_defs function in mcpadapt/src/mcpadapt/utils/modeling.py to remove code-breaking $defs and $refs that are introduced when a custom class is used as one of the args type-hints. The function is called within mcpadapt/src/mcpadapt/crewai_adapter.py.

Contributors

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.

2 participants
0