You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contributing/samples/adk_answering_agent/README.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This agent can be operated in three distinct modes:
6
6
7
7
- An interactive mode for local use.
8
8
- A batch script mode for oncall use.
9
-
- A fully automated GitHub Actions workflow (TBD).
9
+
- A fully automated GitHub Actions workflow.
10
10
11
11
---
12
12
@@ -31,26 +31,30 @@ This will start a local server and provide a URL to access the agent's web inter
31
31
32
32
## Batch Script Mode
33
33
34
-
The `answer_discussions.py`is created for ADK oncall team to batch process discussions.
34
+
The `main.py`script supports batch processing for ADK oncall team to process discussions.
35
35
36
36
### Features
37
-
***Batch Process**: Taken either a number as the count of the recent discussions or a list of discussion numbers, the script will invoke the agent to answer all the specified discussions in one single run.
37
+
***Single Discussion**: Process a specific discussion by providing its number.
38
+
***Batch Process**: Process the N most recently updated discussions.
38
39
39
-
### Running in Interactive Mode
40
-
To run the agent in batch script mode, first set the required environment variables. Then, execute the following command in your terminal:
40
+
### Running in Batch Script Mode
41
+
To run the agent in batch script mode, first set the required environment variables. Then, execute one of the following commands:
The `main.py` is reserved for the Github Workflow. The detailed setup for the automatic workflow is TBD.
57
+
The `main.py`script is automatically triggered by GitHub Actions when new discussions are created in the Q&A category. The workflow is configured in `.github/workflows/discussion_answering.yml` and automatically processes discussions using the `--discussion_number` flag.
0 commit comments