-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: Remove end_invocation check to ensure after_agent callbacks execute #1761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rcleveng
wants to merge
24
commits into
google:main
Choose a base branch
from
rcleveng:no_end_invocation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Removes the end_invocation check that was preventing after_agent callbacks from running. This ensures all registered callbacks are executed properly regardless of the invocation status. Fixes discussion: google#1689
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
…same session id test: refine test_session_state in test_session_state to catch event leakage fix: revert app name to my_app for test_session_state test style: fix pyink style warnings fix: add app_name to filter as per suggestion from rpedela-recurly
Adds a description for docstring and comments in the AGENTS.md and adds a section for Versioning that describes how ADK follows Semantic Versioning 2.0.0 PiperOrigin-RevId: 778667398
Resolves google#1739 PiperOrigin-RevId: 778692588
…ty constraint failures Fixes google#719 where duplicate Event IDs caused database constraint violations during streaming responses. Replaces 8-character random string generation with UUID4 to ensure globally unique identifiers. Changes: - Replace Event.new_id() random string approach with uuid.uuid4() - Remove unused random and string imports - Add uuid import Eliminates SQLite UNIQUE constraint failures in streaming scenarios.
PiperOrigin-RevId: 779255526
…e for production environment Resolves google#1569 PiperOrigin-RevId: 780013850
fix: Use `inspect.signature()` instead of `typing.get_type_hints()` to find the LiveRequestQueue. Motivation: `typing.get_type_hints()` may raise errors in complex scenarios where type annotation is not available. Add live_bidi_streaming_tools_agent example to show how to use the live streaming feature. PiperOrigin-RevId: 780160921
This explains the high-level architecture and philosophy of the ADK project. It can also be feed into LLMs for vibe-coding. PiperOrigin-RevId: 780178125
This PR extends the existing Streaming tests to consider new configurations that have been added, including: - `output_audio_transcription` - `input_audio_transcription` - `realtime_input_config` - `enable_affective_dialog` - `proactivity` These configurations are tested individually and also combined, to cover all the possibilities, increasing the testing coverage and ensuring everything is working as expected. In addition, the new configuration values are also validated to be sure they are properly initialized. PiperOrigin-RevId: 780178334
PiperOrigin-RevId: 780609120
PiperOrigin-RevId: 780654576
PiperOrigin-RevId: 780657476
…arch_tool PiperOrigin-RevId: 780692178
…thout reloading anything PiperOrigin-RevId: 780710003
PiperOrigin-RevId: 780740004
Automatically generate reasonable PR descriptions. PiperOrigin-RevId: 781078962
PiperOrigin-RevId: 781196782
This would allow users to easily make a copy of the agents they built without having to add too much boilerplates. This promotes code reuse, modularity and testability of agents. PiperOrigin-RevId: 781214379
PiperOrigin-RevId: 781272837
This commit includes a number of new tests for live streaming with function calls. These tests cover various scenarios: - Single function calls - Multiple function calls - Parallel function calls - Function calls with errors - Synchronous function calls - Simple streaming tools - Video streaming tools - Stopping a streaming tool - Multiple streaming tools simultaneously The tests use mock models and custom runners to simulate the interaction between the agent, model, and tools. They verify that function calls are correctly generated, executed, and that the expected data is returned. PiperOrigin-RevId: 781318483
PiperOrigin-RevId: 781359783
- Allow run_async to break on partial events instead of raising ValueError - Generate aggregated streaming content regardless of finish_reason - Add error_code and error_message to final streaming responses if model response is interrupted. PiperOrigin-RevId: 781377328
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Removes the end_invocation check that was preventing after_agent callbacks
from running. This ensures all registered callbacks are executed properly
regardless of the invocation status.
Fixes discussion: #1689