docs(examples): Add input-required flow examples#96
Conversation
Add complete examples demonstrating input-required flow in both non-streaming and streaming modes. This feature allows agents to pause task execution to request additional information from users when needed. Features: - Non-streaming example with traditional request-response pattern - Streaming example with real-time responses that can pause for input - Both manual demo mode and AI-powered mode with LLM integration - Comprehensive READMEs with setup instructions and example interactions - Docker Compose setups for easy testing - Integration with built-in input_required tool - Task state management and conversation continuity - Updated main examples documentation Examples cover: - Weather queries requiring location clarification - Calculation requests needing specific numbers - Unclear requests requiring clarification - Interactive conversation flows with context preservation Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
|
@claude Please fix the CI: There are no new lines at the end of the files - please run Also when I review the docker-compose file they slightly different and not consistent with the other docker-compose files in the examples. Use environment variables syntax like in the other examples. |
|
Claude finished @edenreich's task —— View job Fixed CI Issues and Docker Compose Consistency ✅Working on fixing the CI issues and docker-compose consistency problems:
SummaryFixed the CI issues and docker-compose consistency problems: Issues Resolved:
Docker Compose Changes:
The linting now passes with 0 issues. The docker-compose files now follow the same consistent pattern as the other examples in the repository. |
…amples
- Update environment variable syntax to use ${VAR} format consistent with other examples
- Change service names to follow standard pattern (server, client)
- Update network name from adk-network to a2a-network to match other examples
- Standardize build context and dockerfile paths
- Add healthchecks and proper service dependencies
- Update inference gateway configuration to match established pattern
Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
|
@claude CI is still failing - please run |
|
Claude finished @edenreich's task —— View job Fixed CI Dependencies Issue ✅Successfully resolved the CI failure by running
SummaryRoot Cause: The CI was failing on the "Check dirty" step because Solution: Ran
Files Updated:
The repository is now clean and the CI should pass on the next run. All Go modules in the input-required examples are now properly updated with consistent dependency versions. |
Update all input-required example Go modules: - Bump Go version from 1.21 to 1.25 - Update dependency versions to latest compatible - Add missing go.sum files for reproducible builds Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
…e files Signed-off-by: Eden Reich <eden.reich@gmail.com>
|
@claude The input-required code doesn't compile, please make sure you follow the other clients task methods and conventions. |
|
Claude finished @edenreich's task —— View job Fixed Input-Required Code Compilation Issues ✅Successfully resolved all compilation problems in the input-required examples by updating the client code to follow the established conventions used throughout the repository.
Issues FixedClient API Updates:
Verification Results:
The input-required examples now follow the same patterns as the other client examples in the repository and properly demonstrate the input-required flow for both non-streaming and streaming scenarios. |
- Fix client creation to use client.NewClientWithLogger() - Update task methods to use SendTask() and GetTask() with manual polling - Remove non-existent ContextID field from MessageSendParams - Fix message part creation using types.NewTextPart() helper - Update streaming to use SendTaskStreaming() with proper event parsing - Fix function signatures to use interface instead of pointer to interface 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
… configuration management Signed-off-by: Eden Reich <eden.reich@gmail.com>
…Part type Signed-off-by: Eden Reich <eden.reich@gmail.com>
…d map-based parts Signed-off-by: Eden Reich <eden.reich@gmail.com>
…ctory Signed-off-by: Eden Reich <eden.reich@gmail.com>
…n loading refactor(main): Update configuration loading to use go-envconfig and improve server setup Signed-off-by: Eden Reich <eden.reich@gmail.com>
…s; enable interactive terminal for client fix(main): Load server URL from environment variables for better configuration management docs(README): Update Docker Compose instructions for starting server and client Signed-off-by: Eden Reich <eden.reich@gmail.com>
…cker-compose.yaml to 0.1.0 Signed-off-by: Eden Reich <eden.reich@gmail.com>
…tes and status changes Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
… and status updates Signed-off-by: Eden Reich <eden.reich@gmail.com>
…configuration Signed-off-by: Eden Reich <eden.reich@gmail.com>
## [0.14.0](v0.13.1...v0.14.0) (2025-10-11) ### ✨ Features * Add the callbacks ready to be used by the agent ([#94](#94)) ([84632f3](84632f3)) * **types:** Refactor Part deserialization to use concrete types ([#104](#104)) ([22d192e](22d192e)), closes [#102](#102) ### ♻️ Improvements * Consolidate the logic of the agent and remove redundancy ([#93](#93)) ([54e5e71](54e5e71)) * **docker-compose:** Remove port mappings for server service to avoid confusion ([3df7b08](3df7b08)) * **server:** Remove handler duplication between A2AServerImpl and DefaultA2AProtocolHandler ([#101](#101)) ([75b9c20](75b9c20)) ### 🐛 Bug Fixes * Improve validation logic for task handler configuration ([#98](#98)) ([34d6354](34d6354)) ### 👷 CI * Add Prettier setup and formatting steps for Go and markdown files ([#105](#105)) ([f2a1994](f2a1994)) ### 📚 Documentation * **examples:** Add input-required flow examples ([#96](#96)) ([17764f3](17764f3)) ### 🔧 Miscellaneous * **deps:** Update claude-code to 2.0.8 and install gh cli version 2.81.0 in flox environment ([4d6e41a](4d6e41a))
|
🎉 This PR is included in version 0.14.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Add comprehensive examples demonstrating input-required flow in both non-streaming and streaming modes.
Resolves #95
Generated with Claude Code