Repository navigation
feat(examples): add production multi-agent tutorials (Job Application Assistant & Customer Support Copilot) - #252
Conversation
|
This PR requires human effort to run, review and test. |
|
I'll test this on Windows (docker + host) and Linux (host). |
|
Testing on Windows with docker and deterministic backend now. Then this must be tested on Linux with OpenAI compatible backend |
|
Tutorials work well on windows+docker with determenistic backend, Linux testing is next |
|
Verified tutorials on win+docker with gemini models and api key. Some refactoring is required now. |
|
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]>
|
One potential follow up to this could be something like:
In short - showcase how A2A works with MCP and make tutorials more realistic. https://a2a-protocol.org/latest/#how-a2a-works-with-mcp |
|
Verified on linux host |
|
This is good enough for the first iteration of tutorials. |
Motivation
AI agent.Description
examples/tutorials/:job_application_assistantandcustomer_support_copilot, each withinclude/,src/,CMakeLists.txt,samples/,Dockerfile,compose.yaml, and a tutorial README demonstrating architecture and run instructions.openai_compatible(POST{base_url}/chat/completions, bounded timeouts, optional API key, never logged).scripts/run_tutorials.sh, Docker smoke helperscripts/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.