github ComposioHQ/composio @composio/llamaindex@0.9.3

4 months ago

Patch Changes

  • ce4b213: fix(providers): normalize string tool-call arguments across all providers

    Models occasionally emit tool-call arguments as a JSON string instead of an
    object (most visibly with COMPOSIO_MULTI_EXECUTE_TOOL on the Vercel AI SDK),
    which broke downstream validation with errors like
    tool_use.input: Input should be a valid dictionary.

    @composio/core now exposes a single normalizeToolArguments helper, and every
    provider routes model-supplied arguments through it. Object payloads pass
    through unchanged, JSON strings are parsed, empty/null payloads become {},
    and anything that cannot resolve to an object throws a typed
    ComposioInvalidToolArgumentsError instead of a raw SyntaxError or a silently
    forwarded malformed string. This replaces the inconsistent per-provider guards
    that previously existed only in vercel, cloudflare and openai-agents.

Don't miss a new composio release

NewReleases is sending notifications on new releases.