Skip to content

Isolate Anthropic SDK calls in a single generation module #16

Description

@sid-ak

Category: Model Coupling & Portability
Priority: Low
Phase: Phase 6 (FastAPI + LangGraph + streaming)

Problem
Orchestration calls the Anthropic SDK directly; swapping in a local model later (Future Scope) would mean reworking LangGraph nodes.

Solution
Don't abstract prematurely — isolate SDK calls in a single generation/ module with a narrow prompt-in/tokens-out interface, not a BaseChatModel-style layer across the graph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions