Go: Agent Framework implementation (Phases 1-2)#5131
Draft
juliomenendez wants to merge 17 commits intomicrosoft:mainfrom
Draft
Go: Agent Framework implementation (Phases 1-2)#5131juliomenendez wants to merge 17 commits intomicrosoft:mainfrom
juliomenendez wants to merge 17 commits intomicrosoft:mainfrom
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Implements the Agent interface and BaseAgent backed by ChatClient, with support for system instructions, default/per-run chat option merging, UUID-based IDs, and full error propagation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Implements the ChatClient interface backed by the sashabaranov/go-openai library, with message mapping between agent-framework types and OpenAI API types, functional client options (WithBaseURL), and full test coverage using a mock HTTP server. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
Message,Content,Role),ChatClientinterface,BaseAgentwith functional options, OpenAI provider implementationWhat's included
22 new files, 1,784 lines of Go code under
go/:agentframework(root)agentframework/openaiagentframework/observability15 test functions (38 subtests) — all passing.
go vetclean.Stacked PRs — Complete Go Implementation
This is the first in a series of stacked PRs implementing the full Go Agent Framework:
10 packages, 12 phases, all tests passing across the full stack.
Design
See
docs/superpowers/specs/2026-04-06-golang-implementation-design.md(not committed) for the full design spec.Test plan
go test ./... -count=1— all tests passgo vet ./...— no issuesgo mod tidy— module is clean🤖 Generated with Claude Code