Skip to content

feat(examples): add production multi-agent tutorials (Job Application Assistant & Customer Support Copilot) - #252

Merged
MisterVVP merged 12 commits into
mainfrom
dev-implement-examples-2.0-production-tutorials
Sep 23, 2026
Merged

MisterVVP merged 12 commits into
mainfrom
dev-implement-examples-2.0-production-tutorials

Conversation

@MisterVVP

@MisterVVP MisterVVP commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

Motivation

  • Implement the first two Examples 2.0 production tutorials to demonstrate realistic multi-process A2A delegation with HTTP+JSON discovery and delegation semantics.
  • Provide a deterministic, fast, offline model backend for CI plus an optional OpenAI-compatible adapter for real-model usage.
  • Deliver standalone downstream projects that exercise discovery, structured artifacts, coordinator→specialist delegation, host-native and Docker/Compose runs, and a bounded tutorial smoke flow; this PR was produced with AI-assisted authorship and is labeled AI agent.

Description

  • Added two standalone tutorial projects under examples/tutorials/: job_application_assistant and customer_support_copilot, each with include/, src/, CMakeLists.txt, samples/, Dockerfile, compose.yaml, and a tutorial README demonstrating architecture and run instructions.
  • Implemented CLI clients, a coordinator HTTP+JSON server, and a specialist HTTP+JSON server that discover each other via the public Agent Card API and exchange structured artifacts (artifacts/DataPart) rather than freeform prose.
  • Added a small tutorial-local model adapter with two backends: deterministic (default, no network/keys) and openai_compatible (POST {base_url}/chat/completions, bounded timeouts, optional API key, never logged).
  • Added host-native runner scripts/run_tutorials.sh, Docker smoke helper scripts/run_tutorial_docker_smoke.sh, Compose files, and a CI job definition .github/workflows/tutorials.yml; no public SDK API changes were required, and the only minor friction noted is that tutorial processes use a small accept loop around the SDK HTTP adapter to run as a self-contained OS process.

@MisterVVP MisterVVP added the codex Automatic label added by codex agent. Should not be used label Sep 17, 2026 — with ChatGPT Codex Connector
@MisterVVP MisterVVP added documentation Improvements or additions to documentation enhancement New feature or request AI agent AI agent contribution and removed codex Automatic label added by codex agent. Should not be used labels Sep 17, 2026
@MisterVVP MisterVVP linked an issue Sep 17, 2026 that may be closed by this pull request
27 tasks
@MisterVVP MisterVVP added the human Human contribution label Sep 17, 2026
@MisterVVP

Copy link
Copy Markdown
Owner Author

This PR requires human effort to run, review and test.

@MisterVVP MisterVVP self-assigned this Sep 17, 2026
@MisterVVP

Copy link
Copy Markdown
Owner Author

I'll test this on Windows (docker + host) and Linux (host).

@MisterVVP

MisterVVP commented Sep 19, 2026 •

Copy link
Copy Markdown
Owner Author

Testing on Windows with docker and deterministic backend now. Then this must be tested on Linux with OpenAI compatible backend

@MisterVVP

Copy link
Copy Markdown
Owner Author

Tutorials work well on windows+docker with determenistic backend, Linux testing is next

@MisterVVP

Copy link
Copy Markdown
Owner Author

Verified tutorials on win+docker with gemini models and api key. Some refactoring is required now.

@MisterVVP

Copy link
Copy Markdown
Owner Author

Verified refactored tutorials with Gemini free tier here #253

Proceeding with Linux testing.

…atible variables (#253)

### Motivation

- Remove provider-specific duplication introduced for Gemini and keep
tutorials concise by reusing the shared OpenAI-compatible model
variables.
- Prevent proliferation of provider-specific compose files and
environment variables while retaining the ability to target Gemini via
its OpenAI-compatible endpoint.
- Simplify startup checks and configuration logic to reduce maintenance
burden and developer confusion.

### Description

- Removed Gemini-specific Compose overrides (`compose.gemini.yaml`) from
both tutorials and deleted the provider-specific smoke-check in
`scripts/run_tutorials.sh`.
- Eliminated Gemini-specific constants and branch logic from
`LoadModelConfig` in both tutorial `model.cpp` files and kept support
for `deterministic` and `openai_compatible` providers only.
- Rewrote the tutorials' README sections to replace the long
Gemini-specific instructions with a concise `OpenAI-compatible
endpoints` section that documents how to target Gemini via
`A2A_TUTORIAL_MODEL_BASE_URL`, `A2A_TUTORIAL_MODEL_NAME`, and
`A2A_TUTORIAL_MODEL_API_KEY`.
- Kept the existing HTTP retry helper and model implementation path
(`OpenAi`) unchanged while routing all compatible services through the
shared config variables.

---------

Co-authored-by: Vladimir Pavlov <[email protected]>
@MisterVVP

Copy link
Copy Markdown
Owner Author

One potential follow up to this could be something like:

  • store data remotely (e.g. resume on google drive, support ticket data in linear). remote storage can be deployed locally on docker stack.

In short - showcase how A2A works with MCP and make tutorials more realistic. https://a2a-protocol.org/latest/#how-a2a-works-with-mcp

@MisterVVP

Copy link
Copy Markdown
Owner Author

Verified on linux host

@MisterVVP
MisterVVP marked this pull request as ready for review September 22, 2026 19:44
@MisterVVP

Copy link
Copy Markdown
Owner Author

This is good enough for the first iteration of tutorials.

@MisterVVP
MisterVVP merged commit 9f6e2ec into main Sep 23, 2026
21 checks passed
@MisterVVP
MisterVVP deleted the dev-implement-examples-2.0-production-tutorials branch September 23, 2026 06:07
@MisterVVP MisterVVP mentioned this pull request Oct 8, 2026
4 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI agent AI agent contribution documentation Improvements or additions to documentation enhancement New feature or request human Human contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add production-oriented examples and starter applications (Examples 2.0)

1 participant