Skip to content

Subagent tool_calls not handled when using LiteLLM proxy #1544

Closed

Description

@ThePlenkov

Summary

When using cagent with a LiteLLM proxy (OpenAI-compatible API), a subagent can return a valid tool_calls response, but the host agent reports “no response from subagent” and does not execute the tool call.

Environment

  • cagent: v1.19.7
  • OS: Linux (WSL2) x86_64
  • LLM: gemini-pro via LiteLLM proxy (OpenAI-compatible)

Expected

Host agent receives the subagent response and executes the tool call(s), then continues the conversation with the tool result.

Actual

Host agent reports there is “no response from subagent” even though the subagent response contains a valid tool_calls entry. The requested tool call is not executed.

Minimal reproduction

  1. Configure cagent to use LiteLLM as the model provider (OpenAI-compatible API).
  2. Run a workflow where the subagent is asked to use tools.
  3. The subagent returns a tool call (e.g., company_search with JSON arguments) and finishes with finish_reason: "stop".
  4. The host agent logs “no response from subagent” and does not invoke the tool.

Notes

  • The subagent response includes a valid tool call object (type: function, name: company_search, arguments: {"datasources": ["confluence", "github", "gdrive"], "query": "LiteLLM usage teams integrations standards"}).
  • I can reproduce consistently with LiteLLM as the proxy in front of an OpenAI-compatible endpoint.

Please let me know if you want a sanitized example payload or a minimal agent config.

Activity

  1. added
    area/agent
    area/tools
    on Mar 21, 2026
  2. added theissue type on Mar 21, 2026
  3. added
    area/providers
    and removed
    area/agent
    area/tools
    on Mar 21, 2026
  4. added
    area/agent
    and removed on May 5, 2026
  5. added
    area/tools
    and removed on May 22, 2026
  6. removed theissue type on May 23, 2026
  7. changed the issue type fromtoon May 23, 2026
  8. changed the issue type fromtoon May 26, 2026
  9. added
    kind/fix
    on May 26, 2026
  10. changed the issue type fromtoon May 26, 2026
  11. added a commit that references this issue on Jun 3, 2026
    a4ce4cd
  12. removed
    kind/fix
    on Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/agentarea/providersarea/tools

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions