Skip to content

feat: pluggable LLM provider with a real AI SDK adapter - #4

Merged
ThomasHartDev merged 1 commit into
mainfrom
thomas/feat/llm-provider
Jul 17, 2026
Merged

feat: pluggable LLM provider with a real AI SDK adapter#4
ThomasHartDev merged 1 commit into
mainfrom
thomas/feat/llm-provider

Conversation

@ThomasHartDev

Copy link
Copy Markdown
Owner

adds a new packages/llm that plugs a real model into the agent loop through the Vercel AI SDK. the agent-core LLMProvider interface stays the same, so the orchestrator doesn't know or care which backend it's talking to. createLLMProvider is key-gated: with OPENAI_API_KEY set it returns the AI SDK adapter, otherwise it falls back to the existing MockLLMProvider so CI and local dev keep running with no credentials. the adapter maps our message history (including tool calls and tool results) into AI SDK model messages and reconstructs tool names for prior results, and surfaces at most one decision per call since the orchestrator owns the loop. tests use the SDK's mock model to cover the tool-call and plain-answer paths plus the key gating, no network for now.

@ThomasHartDev
ThomasHartDev merged commit 8ef0ce9 into main Jul 17, 2026
1 check passed
@ThomasHartDev
ThomasHartDev deleted the thomas/feat/llm-provider branch July 17, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant