Skip to content

Commit 25ebf28

Browse files
Merge branch 'main' into fix/oauth-prompt-configurable
2 parents d93f15b + c08debc commit 25ebf28

151 files changed

Lines changed: 8386 additions & 34870 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.agents/skills/adk-unit-guide/SKILL.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Use the following structure and instructions to create the guide for the code un
5353
- Use unit test code as a starting point for the code example, if available.
5454
- When writing a sample agent, do not set the `model` attribute.
5555
- For workflow node samples, prefer using a simple Python function rather than extending `BaseNode` to demonstrate the node's logic, unless class extension is explicitly required for the use case.
56+
- When wrapping Python functions as workflow nodes, prefer using the `@node` decorator instead of `FunctionNode` directly, whenever possible.
5657
5758
## How it works
5859
@@ -64,6 +65,8 @@ Use the following structure and instructions to create the guide for the code un
6465
## Configuration options
6566
6667
- If the code unit has configuration options (e.g., settings, configuration objects), document them in a table detailing parameters, types, default values, and descriptions.
68+
- **Do NOT** list options inherited from base classes. Focus only on options introduced by the code unit itself.
69+
- Dive into each option to provide detailed description and usage patterns, rather than just repeating the type and a brief description.
6770
- **Do NOT** list references of all attributes or methods of the classes. Exhaustive API references belong in auto-generated reference documentation, not in guides. Guides should focus on how to use the code unit.
6871
6972
## Advanced applications
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.2.0"
2+
".": "2.3.0"
33
}

.github/release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@
5656
]
5757
}
5858
},
59-
"last-release-sha": "cd81f7bde91df78d6cece539a6f98dda2aa8c9c0"
59+
"last-release-sha": "0cb4c814928f579bfbac9b9e1f95669e4304e089"
6060
}

.github/workflows/copybara-pr-handler.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,20 @@ jobs:
5959
console.log(`Committer: ${committer}`);
6060
6161
// Check if this is a Copybara commit or has a pull request reference
62+
const prRegex = /Merges?:?\s+(?:https:\/\/github\.com\/google\/adk-python\/pull\/|#)(\d+)/i;
6263
const isCopybara = committer === 'Copybara-Service' ||
6364
commit.author?.email === 'genai-sdk-bot@google.com' ||
6465
message.includes('GitOrigin-RevId:') ||
6566
message.includes('PiperOrigin-RevId:') ||
66-
/Merge:?\s+https:\/\/github\.com\/google\/adk-python\/pull\/(\d+)/.test(message);
67+
prRegex.test(message);
6768
6869
if (!isCopybara) {
6970
console.log('Not a Copybara commit, skipping');
7071
continue;
7172
}
7273
7374
// Extract PR number from commit message
74-
// Pattern matches both "Merge https://..." and "Merge: https://..."
75-
const prMatch = message.match(/Merge:?\s+https:\/\/github\.com\/google\/adk-python\/pull\/(\d+)/);
75+
const prMatch = message.match(prRegex);
7676
7777
if (!prMatch) {
7878
console.log('No PR number found in Copybara commit message');

.github/workflows/release-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ jobs:
3131
- uses: actions/checkout@v6
3232

3333
- name: Install uv
34-
uses: astral-sh/setup-uv@v4
34+
uses: astral-sh/setup-uv@v7
3535
with:
3636
version: "latest"
3737

3838
- name: Set up Python
39-
uses: actions/setup-python@v5
39+
uses: actions/setup-python@v6
4040
with:
4141
python-version: "3.11"
4242

.github/workflows/release-update-adk-web.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v5
24+
uses: actions/checkout@v6
2525

2626
- name: Fetch and unzip frontend assets
2727
run: |
@@ -51,14 +51,25 @@ jobs:
5151
rm frontend.zip
5252
echo "Assets extracted successfully."
5353
54+
- name: Extract Bot Identity
55+
id: bot-identity
56+
env:
57+
GH_TOKEN: ${{ secrets.RELEASE_PAT }}
58+
run: |
59+
USER_JSON=$(gh api user)
60+
echo "name=$(echo "$USER_JSON" | jq -r '.login')" >> $GITHUB_OUTPUT
61+
echo "email=$(echo "$USER_JSON" | jq -r '.id')+$(echo "$USER_JSON" | jq -r '.login')@users.noreply.github.com" >> $GITHUB_OUTPUT
62+
5463
- name: Create Pull Request
5564
uses: peter-evans/create-pull-request@v6
5665
with:
57-
token: ${{ secrets.GITHUB_TOKEN }}
66+
token: ${{ secrets.RELEASE_PAT }}
5867
commit-message: "Update compiled adk web files from ${{ github.event.inputs.adk_web_repo }}@${{ github.event.inputs.adk_web_tag || 'latest' }}"
5968
branch: update-frontend-assets
6069
delete-branch: true
6170
title: "chore: update compiled adk web assets"
71+
committer: "${{ steps.bot-identity.outputs.name }} <${{ steps.bot-identity.outputs.email }}>"
72+
author: "${{ steps.bot-identity.outputs.name }} <${{ steps.bot-identity.outputs.email }}>"
6273
body: |
6374
This PR automatically updates the compiled adk web files in `src/google/adk/cli/browser/` using the assets from `${{ github.event.inputs.adk_web_repo }}@${{ github.event.inputs.adk_web_tag || 'latest' }}`.
6475
Please review the diff before merging.

.github/workflows/release-v1-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
echo "PEP 440 version: $PEP440"
4242
4343
- name: Install uv
44-
uses: astral-sh/setup-uv@v4
44+
uses: astral-sh/setup-uv@v7
4545
with:
4646
version: "latest"
4747

4848
- name: Set up Python
49-
uses: actions/setup-python@v5
49+
uses: actions/setup-python@v6
5050
with:
5151
python-version: "3.11"
5252

0 commit comments

Comments
 (0)