Class AdkPrTriagingAgentRun
java.lang.Object
com.example.adkprtriaging.AdkPrTriagingAgentRun
Entry point for the ADK Java PR triaging agent. Mirrors
main.py in the Python sample, and
follows the *Run entry-point convention of the sibling ADK Issue Triaging Agent and ADK
Docs Release Analyzer samples.
The runtime mode is selected by environment variables:
- GitHub Actions workflow mode (set
INTERACTIVE=0): a one-shot run that triages the single pull request named byPULL_REQUEST_NUMBER. - Interactive console mode (default;
INTERACTIVE=1): a Scanner-based REPL. The system instruction tells the agent to ask for confirmation before labeling or commenting. For a richer UI, thegoogle-adk-maven-plugin'swebgoal can serve this agent (see this module's README for the exact command).
All GitHub access (reads and writes) goes through the shared GitHubTools, whose GitHubTools.dryRun/GitHubTools.writeRepoOwner/GitHubTools.writeRepoName guards
are configured here so untrusted PR content cannot redirect writes to another repository.
-
Method Summary
-
Method Details
-
main
-