Skip to content

feat(embeddedchat): add headless chat session API#3171

Merged
dgageot merged 3 commits into
docker:mainfrom
dgageot:feat/embedded-chat-api
Jun 19, 2026
Merged

feat(embeddedchat): add headless chat session API#3171
dgageot merged 3 commits into
docker:mainfrom
dgageot:feat/embedded-chat-api

Conversation

@dgageot

@dgageot dgageot commented Jun 19, 2026

Copy link
Copy Markdown
Member

Summary

  • add pkg/embeddedchat, a headless wrapper for embedding docker-agent runtime conversations in non-docker-agent UIs
  • support loading an agent source, streaming assistant text/tool events, confirming tool calls, restarting conversations, and closing active runs
  • cover loading, streaming, confirmation, elicitation/max-iteration handling, error handling, concurrent send rejection, and cancellation semantics

Tests

  • go test ./pkg/embeddedchat ./pkg/app ./pkg/runtime ./pkg/teamloader

@dgageot dgageot requested a review from a team as a code owner June 19, 2026 12:07
docker-agent

This comment was marked as outdated.

@aheritier aheritier added area/agent For work that has to do with the general agent loop/agentic features of the app area/api For features/issues/fixes related to the usage of the cagent API kind/feat PR adds a new feature (maps to feat: commit prefix) labels Jun 19, 2026
@dgageot dgageot merged commit 0d9396f into docker:main Jun 19, 2026
5 checks passed
pull Bot pushed a commit to TheTechOddBug/cagent that referenced this pull request Jun 20, 2026
…ddedchat, RAG opt-in, optional providers

- PR docker#3171 (pkg/embeddedchat): Add 'Headless Embedded Chat' section to
  docs/guides/go-sdk/index.md documenting the Config, Session, Event
  types and the Send/Confirm/Restart/Close API with worked examples.
- PR docker#3174 (RAG opt-in): Add 'RAG Toolset (cgo-free builds)' section
  explaining that pkg/rag must be blank-imported to register the toolset,
  allowing embedders to omit it and avoid the cgo dependency.
- PR docker#3176 (optional providers): Add 'Optional Provider Build Tags'
  section listing docker_agent_no_{openai,anthropic,google,bedrock} tags
  with the major dependency each removes and the Anthropic+Google note.
- Add pkg/embeddedchat row to the Core Packages table.

Sources:
  docker#3171
  docker#3174
  docker#3176
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agent For work that has to do with the general agent loop/agentic features of the app area/api For features/issues/fixes related to the usage of the cagent API kind/feat PR adds a new feature (maps to feat: commit prefix)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants