Skip to content

[Story] A2. Provider adapters with streaming and tool calls #191

Backlog

Description

@aMonteSl

As a developer, I want every provider to behave the same inside the IDE, so that I can switch models without changing how I work.

Acceptance criteria

  • One adapter per API family:
    • Anthropic Messages
    • OpenAI Chat Completions, which is also used for OpenRouter, Nous Portal and compatible endpoints
    • Gemini streamGenerateContent
  • Streamed text, tool-call requests, token usage and the stop reason are normalised into one ChatEvent type.
  • Cancelling (Stop) aborts the HTTP request.
  • 429 and 5xx responses are retried with backoff (honouring Retry-After) before anything is streamed.
  • Clear error messages for a bad key, exhausted quota, rate limits and an unknown model.
  • Keys go in headers, never in URLs.
  • Tests run against recorded fixtures, with no live calls in CI.

Epic: #189

Activity

  1. added
    tfm
    user-story
    area: ide
    on Nov 26, 2026
  2. added a commit that references this issue on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ai-agentsarea: idestream: ai-agentstfmuser-story

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions