@devries-cameron20 / composio Mirror · read-only / commits / fc036563b
Fork 0

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 21, 16:00 UTC

fix(py): preserve provider tool arguments (#4094)

This PR: - builds on #4081's cross-SDK JSON Schema conversion contract - closes #4092 and supersedes the narrower CrewAI-only proposal in #4093 - validates and serializes CrewAI, LangChain, and LangGraph arguments without renaming aliases, padding omitted optionals with `None`, dropping explicit nulls, declared defaults, or dynamic extras - forces framework validation for pattern-only and other zero-field Pydantic schemas before tool execution - returns structured CrewAI validation failures The final correctness pass extends presence tracking recursively. It combines each selected Pydantic model's `model_fields_set` with metadata for JSON Schema-declared defaults, including nested objects, arrays, maps, `anyOf`/`oneOf`, overlapping `patternProperties`, and schema-valued `additionalProperties`. It preserves literal `$ref`-shaped instance defaults and keeps dynamic attributes and `model_extra` in their previous plain dict/list form. Repeated dynamic-key materialization is presence-safe and does not turn omitted nullable fields into explicit nulls. ## Verification - Provider serialization and schema converter: 158 passed - Provider, neighboring provider, and parser suites: 219 passed - Full `nox -s chk`: Ruff and mypy passed - Claude Fable 5 high adversarial gate: 359 tests plus union, reference, overlapping-pattern, alias, reserved-key, recursion, and wide/deep payload probes; `VERDICT: SHIP` - `git diff --check` passed Python package versioning remains part of the later Python release workflow; this PR does not require a TypeScript Changeset. Closes #4092.

Alberto Schiabel committed Aug 11, 2026 at 10:38 UTC fc036563b0518b35bdd2f09b716ab30b603fd902

No changes.