How vishalmysore/a2a-examples works
This repository is a collection of Java examples for agentic applications, rather than the A2A framework implementation itself. Its documented prompt workflow sends a natural-language task to the A2A Java client, which selects an annotated action and returns a task result; the referenced A2AJavaAgent entry point is not present in the supplied tree, so that runtime is shown as external. Other examples cover image understanding and structured extraction, scripted actions, and AI-assisted browser testing. The README documents additional framework capabilities not represented by paths in this tree; links to those are omitted.
Main entry points: actions Annotated Actions · AgricultureDemo.java Plant Analysis · WebTestingWithAI.java AI Web Testing · WeatherAction.java Weather Lookup
Components 19
Prompt Actions
- Annotated Actions
src/main/java/io/github/vishalmysore/actions - Weather Lookup
src/main/java/io/github/vishalmysore/actions/WeatherAction.java - Web Search
src/main/java/io/github/vishalmysore/actions/GoogleSearchAction.java - Restaurant Actions
src/main/java/io/github/vishalmysore/actions/AddRestaurantAction.java - Player Actions
src/main/java/io/github/vishalmysore/actions/NotifyPlayerAction.java
Image Processing
- Gemini Image Processor
src/main/java/io/github/vishalmysore/image/GeminiImageExample.java - Image Actions
src/main/java/io/github/vishalmysore/image/action - Plant Analysis
src/main/java/io/github/vishalmysore/agriculture/AgricultureDemo.java
Script Automation
- Script Processors
src/main/java/io/github/vishalmysore/script/ProcessScriptComplex.java - Script Actions
src/main/java/io/github/vishalmysore/script/actions
Web Testing
- AI Web Testing
src/main/java/io/github/vishalmysore/webtesting/WebTestingWithAI.java - Selenium Actions
src/main/java/io/github/vishalmysore/webtesting/WebDriverAction.java
Domain Models
- Plant Model
src/main/java/io/github/vishalmysore/agriculture/Plant.java - Structured Models
src/main/java/io/github/vishalmysore/pojo
Other components
- User
- A2A Runtime
- Browser
- Open-Meteo
- Serper Search
Connections 15
- User → A2A Runtime: sends task
- A2A Runtime → Annotated Actions: selects action
- Annotated Actions → Weather Lookup: dispatches
- Annotated Actions → Web Search: dispatches
- Annotated Actions → Restaurant Actions: dispatches
- Annotated Actions → Player Actions: dispatches
- Weather Lookup → Open-Meteo: queries
- Web Search → Serper Search: queries
- Gemini Image Processor → Structured Models: extracts into
- Plant Analysis → Gemini Image Processor: analyzes images
- Plant Analysis → Plant Model: extracts into
- Image Actions → A2A Runtime: exposes actions
- Script Processors → Script Actions: executes
- AI Web Testing → Selenium Actions: delegates actions
- AI Web Testing → Browser: controls