feat: add agent_sdk package with generic AgentClient interface#74
Merged
Norbert515 merged 1 commit intomainfrom Feb 19, 2026
Merged
feat: add agent_sdk package with generic AgentClient interface#74Norbert515 merged 1 commit intomainfrom
Norbert515 merged 1 commit intomainfrom
Conversation
…aude bridge Create a provider-agnostic abstraction layer for AI coding agents. The agent_sdk package defines AgentClient, a sealed AgentResponse hierarchy, conversation/message models, and capability interfaces (ModelConfigurable, Interruptible, etc.). ClaudeAgentClient in claude_sdk bridges ClaudeClient into the generic interface with exhaustive type mappers. This enables vide_core to depend on agent_sdk instead of claude_sdk directly (follow-up PR).
7683e5e to
cb0f980
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packages/agent_sdk/— a provider-agnostic abstraction layer for AI coding agents with its own data modelClaudeAgentClientbridge inclaude_sdkthat maps between Claude-specific and generic typesvide_corefromClaudeClienttoAgentClient, decoupling it from any specific AI providerWhat's in agent_sdk
AgentClientinterface — streams (conversation, status, init data), getters, actions (sendMessage, abort, close, etc.)ModelConfigurable,ThinkingConfigurable,PermissionModeConfigurable,Interruptible,FileRewindable,McpConfigurable— consumers check viaiscastsAgentResponsesealed hierarchy — text, tool use, tool result, completion, error, API error, context compacted, user message, unknownAgentConversation+AgentConversationMessage— conversation state, token accumulators, tool invocation pairingAgentMessage+AgentAttachment— input modelAgentProcessingStatus,AgentInitData,TokenUsageClaude bridge
ClaudeAgentClientwrapsClaudeClientand implementsAgentClient+ all capability interfacesclaude_sdktypes andagent_sdktypesWhat's NOT in this PR
ClaudeClient→AgentClient(follow-up)CodexAgentClient) (follow-up after codex_sdk lands)Verification
dart analyze— 0 issuesdart test— 330/330 passingdart format— all files formatted