Skip to content

Commit e1b1b14

Browse files
authored
Merge branch 'main' into feature/async_database_session_service
2 parents 000940b + 712da1b commit e1b1b14

92 files changed

Lines changed: 5232 additions & 823 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.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ assignees: ''
1414
A clear and concise description of what the bug is.
1515

1616
**To Reproduce**
17+
Please share a minimal code and data to reproduce your problem.
1718
Steps to reproduce the behavior:
1819
1. Install '...'
1920
2. Run '....'
2021
3. Open '....'
21-
4. See error
22+
4. Provie error or stacktrace
2223

2324
**Expected behavior**
2425
A clear and concise description of what you expected to happen.
@@ -27,12 +28,13 @@ A clear and concise description of what you expected to happen.
2728
If applicable, add screenshots to help explain your problem.
2829

2930
**Desktop (please complete the following information):**
30-
- OS: [e.g. iOS]
31+
- OS: [e.g. macOS, Linux, Windows]
3132
- Python version(python -V):
3233
- ADK version(pip show google-adk):
3334

3435
**Model Information:**
35-
For example, which model is being used.
36+
- Are you using LiteLLM: Yes/No
37+
- Which model is being used(e.g. gemini-2.5-pro)
3638

3739
**Additional context**
3840
Add any other context about the problem here.

.github/workflows/analyze-releases-for-adk-docs-updates.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
with:
2424
python-version: '3.11'
2525

26+
- name: Load adk-bot SSH Private Key
27+
uses: webfactory/ssh-agent@v0.9.0
28+
with:
29+
ssh-private-key: ${{ secrets.ADK_BOT_SSH_PRIVATE_KEY }}
30+
2631
- name: Install dependencies
2732
run: |
2833
python -m pip install --upgrade pip

AGENTS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Please refer to [ADK Project Overview and Architecture](https://github.com/googl
1717
- ADK live related configs are in [run_config.py](https://github.com/google/adk-python/blob/main/src/google/adk/agents/run_config.py).
1818
- ADK live under multi-agent scenario: we convert the audio into text. This text will be passed to next agent as context.
1919
- Most logics are in [base_llm_flow.py](https://github.com/google/adk-python/blob/main/src/google/adk/flows/llm_flows/base_llm_flow.py) and [gemini_llm_connection.py](https://github.com/google/adk-python/blob/main/src/google/adk/models/gemini_llm_connection.py).
20+
- Input transcription and output transcription should be added to session as Event.
21+
- User audio or model audio should be saved into artifacts with a reference in Event to it.
2022
- Tests are in [tests/unittests/streaming](https://github.com/google/adk-python/tree/main/tests/unittests/streaming).
2123

2224
## ADK: Style Guides

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [1.14.1](https://github.com/google/adk-python/compare/v1.14.0...v1.14.1) (2025-09-12)
4+
5+
### Bug Fixes
6+
7+
* Fix logging issues with RemoteA2aAgent [0c1f1fa](https://github.com/google/adk-python/commit/0c1f1fadeb5a6357af9cad0eff5d5e7103fc88b0)
8+
39
## [1.14.0](https://github.com/google/adk-python/compare/v1.13.0...v1.14.0) (2025-09-10)
410

511
### Features

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ Agent Development Kit (ADK) is a flexible and modular framework for developing a
2727

2828
---
2929

30-
## What's new
30+
## 🔥 What's new
3131

3232
- **Agent Config**: Build agents without code. Check out the
3333
[Agent Config](https://google.github.io/adk-docs/agents/config/) feature.
3434

35+
- **Tool Confirmation**: A [tool confirmation flow(HITL)](https://google.github.io/adk-docs/tools/confirmation/) that can guard tool execution with explicit confirmation and custom input
36+
3537
## ✨ Key Features
3638

3739
- **Rich Tool Ecosystem**: Utilize pre-built tools, custom functions,
@@ -94,7 +96,7 @@ from google.adk.tools import google_search
9496

9597
root_agent = Agent(
9698
name="search_assistant",
97-
model="gemini-2.0-flash", # Or your preferred Gemini model
99+
model="gemini-2.5-flash", # Or your preferred Gemini model
98100
instruction="You are a helpful assistant. Answer user questions using Google Search when needed.",
99101
description="An assistant that can search the web.",
100102
tools=[google_search]
@@ -109,13 +111,13 @@ Define a multi-agent system with coordinator agent, greeter agent, and task exec
109111
from google.adk.agents import LlmAgent, BaseAgent
110112

111113
# Define individual agents
112-
greeter = LlmAgent(name="greeter", model="gemini-2.0-flash", ...)
113-
task_executor = LlmAgent(name="task_executor", model="gemini-2.0-flash", ...)
114+
greeter = LlmAgent(name="greeter", model="gemini-2.5-flash", ...)
115+
task_executor = LlmAgent(name="task_executor", model="gemini-2.5-flash", ...)
114116

115117
# Create parent agent and assign children via sub_agents
116118
coordinator = LlmAgent(
117119
name="Coordinator",
118-
model="gemini-2.0-flash",
120+
model="gemini-2.5-flash",
119121
description="I coordinate greetings and tasks.",
120122
sub_agents=[ # Assign sub_agents here
121123
greeter,

contributing/samples/adk_agent_builder_assistant/instruction_embedded.template

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ You are an intelligent Agent Builder Assistant specialized in creating and confi
66

77
Help users design, build, and configure sophisticated multi-agent systems for the ADK framework. You guide users through the agent creation process by asking clarifying questions, suggesting optimal architectures, and generating properly formatted YAML configuration files that comply with the ADK AgentConfig schema.
88

9+
## CRITICAL BEHAVIOR RULE
10+
11+
**NEVER assume users want to create agents unless they explicitly ask to CREATE, BUILD, GENERATE, IMPLEMENT, or UPDATE something.**
12+
13+
When users ask informational questions like "find me examples", "show me samples", "how do I", etc., they want INFORMATION ONLY. Provide the information and stop. Do not offer to create anything or ask for root directories.
14+
915
## Core Capabilities
1016

1117
1. **Agent Architecture Design**: Analyze requirements and suggest appropriate agent types (LlmAgent, SequentialAgent, ParallelAgent, LoopAgent)
@@ -26,7 +32,27 @@ Always reference this schema when creating configurations to ensure compliance.
2632
## Workflow Guidelines
2733

2834
### 1. Discovery Phase
29-
- **ROOT DIRECTORY ESTABLISHMENT**:
35+
- **DETERMINE USER INTENT FIRST**:
36+
* **INFORMATIONAL QUESTIONS** (Answer directly WITHOUT asking for root directory):
37+
- "Could you find me examples of..." / "Find me samples of..."
38+
- "Show me how to..." / "How do I..."
39+
- "What is..." / "What are..." / "Explain..."
40+
- "Can you show me..." / "Do you have examples of..."
41+
- "I'm looking for information about..." / "I need to understand..."
42+
- Questions about ADK capabilities, concepts, or existing implementations
43+
- **CRITICAL**: For informational questions, provide the requested information and STOP. Do NOT offer to create, build, or generate anything unless explicitly asked.
44+
* **CREATION/BUILDING INTENT** (Only then ask for root directory):
45+
- "Create a new agent..." / "Build me an agent..."
46+
- "Generate an agent..." / "Implement an agent..."
47+
- "Update my agent..." / "Modify my agent..." / "Change my agent..."
48+
- "I want to create..." / "Help me build..." / "Help me update..."
49+
- "Set up a project..." / "Make me an agent..."
50+
51+
**EXAMPLE OF CORRECT BEHAVIOR:**
52+
- User: "Could you find me a sample agent that can list my calendar events?"
53+
- ✅ CORRECT: Search for examples, show the samples found, explain how they work, and STOP.
54+
- ❌ WRONG: "Before I proceed with creating an agent..." or asking for root directory.
55+
- **ROOT DIRECTORY ESTABLISHMENT** (Only for Creation/Building):
3056
* **FIRST**: Check SESSION CONTEXT section below for "Established Root Directory"
3157
* **IF ESTABLISHED**: Use the existing session root directory - DO NOT ask again
3258
* **IF NOT ESTABLISHED**: Ask user for root directory to establish working context

contributing/samples/adk_agent_builder_assistant/instruction_query.template

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ You are an intelligent Agent Builder Assistant specialized in creating and confi
66

77
Help users design, build, and configure sophisticated multi-agent systems for the ADK framework. You guide users through the agent creation process by asking clarifying questions, suggesting optimal architectures, and generating properly formatted YAML configuration files that comply with the ADK AgentConfig schema.
88

9+
## CRITICAL BEHAVIOR RULE
10+
11+
**NEVER assume users want to create agents unless they explicitly ask to CREATE, BUILD, GENERATE, IMPLEMENT, or UPDATE something.**
12+
13+
When users ask informational questions like "find me examples", "show me samples", "how do I", etc., they want INFORMATION ONLY. Provide the information and stop. Do not offer to create anything or ask for root directories.
14+
915
## Core Capabilities
1016

1117
1. **Agent Architecture Design**: Analyze requirements and suggest appropriate agent types (LlmAgent, SequentialAgent, ParallelAgent, LoopAgent)
@@ -29,7 +35,27 @@ Always use the query_schema tool when you need specific ADK AgentConfig schema i
2935
## Workflow Guidelines
3036

3137
### 1. Discovery Phase
32-
- **ROOT DIRECTORY ESTABLISHMENT**:
38+
- **DETERMINE USER INTENT FIRST**:
39+
* **INFORMATIONAL QUESTIONS** (Answer directly WITHOUT asking for root directory):
40+
- "Could you find me examples of..." / "Find me samples of..."
41+
- "Show me how to..." / "How do I..."
42+
- "What is..." / "What are..." / "Explain..."
43+
- "Can you show me..." / "Do you have examples of..."
44+
- "I'm looking for information about..." / "I need to understand..."
45+
- Questions about ADK capabilities, concepts, or existing implementations
46+
- **CRITICAL**: For informational questions, provide the requested information and STOP. Do NOT offer to create, build, or generate anything unless explicitly asked.
47+
* **CREATION/BUILDING INTENT** (Only then ask for root directory):
48+
- "Create a new agent..." / "Build me an agent..."
49+
- "Generate an agent..." / "Implement an agent..."
50+
- "Update my agent..." / "Modify my agent..." / "Change my agent..."
51+
- "I want to create..." / "Help me build..." / "Help me update..."
52+
- "Set up a project..." / "Make me an agent..."
53+
54+
**EXAMPLE OF CORRECT BEHAVIOR:**
55+
- User: "Could you find me a sample agent that can list my calendar events?"
56+
- ✅ CORRECT: Search for examples, show the samples found, explain how they work, and STOP.
57+
- ❌ WRONG: "Before I proceed with creating an agent..." or asking for root directory.
58+
- **ROOT DIRECTORY ESTABLISHMENT** (Only for Creation/Building):
3359
* **FIRST**: Check SESSION CONTEXT section below for "Established Root Directory"
3460
* **IF ESTABLISHED**: Use the existing session root directory - DO NOT ask again
3561
* **IF NOT ESTABLISHED**: Ask user for root directory to establish working context

contributing/samples/adk_agent_builder_assistant/utils/adk_source_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from typing import Optional
2424

2525
# Set up logger for ADK source utils
26-
logger = logging.getLogger(__name__)
26+
logger = logging.getLogger("google_adk." + __name__)
2727

2828
# Global cache for ADK AgentConfig schema to avoid repeated file reads
2929
_schema_cache: Optional[Dict[str, Any]] = None
@@ -49,7 +49,7 @@ def find_adk_source_folder(start_path: Optional[str] = None) -> Optional[str]:
4949
adk_path = find_adk_source_folder("/path/to/project")
5050
"""
5151
if start_path is None:
52-
start_path = os.getcwd()
52+
start_path = os.path.dirname(__file__)
5353

5454
current_path = Path(start_path).resolve()
5555

contributing/samples/adk_answering_agent/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
5. **Post the response**:
7979
* If you can find relevant information, use the `add_comment_to_discussion`
8080
tool to add a comment to the discussion.
81-
* If you post a comment, add the label {BOT_RESPONSE_LABEL} to the discussion
81+
* If you post a comment, add the label "{BOT_RESPONSE_LABEL}" to the discussion
8282
using the `add_label_to_discussion` tool.
8383
8484
IMPORTANT:

contributing/samples/adk_answering_agent/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ async def main():
208208
# If we have discussion JSON data, include it in the prompt
209209
# to avoid API call
210210
if discussion_json_data:
211-
import json
212-
213211
discussion_json_str = json.dumps(discussion_json_data, indent=2)
214212
prompt = (
215213
f"Please help answer this GitHub discussion #{discussion_number}."

0 commit comments

Comments
 (0)