Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 04:30 UTC
fix: use .get() for schema type/title access in pydantic_model_from_param_schema
Schemas for nested objects may use anyOf/allOf/oneOf/$ref instead of a top-level 'type' key. Direct dict access prop_info['type'] and prop_info['title'] would raise KeyError in those cases (e.g. Dropbox SEARCH_FILE_OR_FOLDER with an 'options' parameter). Changes: - prop_info['type'] -> prop_info.get('type') - prop_info['title'] -> prop_info.get('title', prop_name) - FALLBACK_VALUES[prop_type] -> FALLBACK_VALUES.get(prop_type) - When prop_type is None, delegate to json_schema_to_pydantic_type() which already handles all combiner schemas correctly Fixes #2459