Skip to content

add content blocks and OpenAI Responses provider#21

Merged
writeameer merged 1 commit into
mainfrom
codex/content-blocks-openai
May 27, 2026
Merged

add content blocks and OpenAI Responses provider#21
writeameer merged 1 commit into
mainfrom
codex/content-blocks-openai

Conversation

@writeameer
Copy link
Copy Markdown
Contributor

Summary

  • replace string-only messages with typed content blocks for text, images, tool calls, and tool results
  • keep agent.Ask(ctx, string) as the simple text path and add AskContent for rich input
  • change provider responses to return message slices, expand token usage, and add optional capabilities
  • move the OpenAI provider to the Responses API with text and image input support
  • update xAI, Anthropic, examples, memory copying, tests, and docs for the new core shape

Validation

  • GOCACHE=/private/tmp/forge-go-cache go test ./...
  • _examples/hello-world: GOCACHE=/private/tmp/forge-go-cache go test ./...
  • _examples/chat-console: GOCACHE=/private/tmp/forge-go-cache go test ./...
  • _examples/calculator: GOCACHE=/private/tmp/forge-go-cache go test ./...

Notes

  • this is intentionally a breaking API change before wider adoption
  • after merge, cut a new Forge version and update hello-forge off its temporary local replace

@writeameer writeameer changed the title [codex] add content blocks and OpenAI Responses provider add content blocks and OpenAI Responses provider May 27, 2026
@writeameer writeameer marked this pull request as ready for review May 27, 2026 08:24
@writeameer writeameer merged commit 755a45f into main May 27, 2026
2 checks passed
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