Skip to content

Adapter internals cleanup (with_raw_response parity, error messages, dedup) #14

Description

@iamfaham

Context. A handful of adapter-internals items were deferred as non-blocking during framework enablement (iteration 8):

  • Anthropic doesn't yet have with_raw_response parity the way OpenAI/LangChain paths do (defensive gap, not a known failure).
  • The async recording-tee's inherited sync __iter__ raises an opaque TypeError if called directly instead of a clear message pointing at __aiter__.
  • reconstruct_response has some duplication between the sync/async and OpenAI/Responses-API code paths that could be shared.
  • Cross-API replay errors (e.g. replaying an Anthropic recording through an OpenAI-configured client) use a generic error message rather than naming which SDK/API mismatch occurred.

Proposed. Address each as a small, independent cleanup; not urgent, bundled here so they aren't lost.

Source: internal backlog, deferred from iteration 8 final review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions