Skip to content

feat: Add tool callback chaining support for live streaming #1986

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

Merged
merged 1 commit into from
Jul 16, 2025

Conversation

copybara-service[bot]
Copy link

feat: Add tool callback chaining support for live streaming

Highlights:

  • Callback Chaining: Now supports a list of before and after callbacks, as in the non-live version. Callbacks are executed in order, stopping when one returns a response.
  • Unit Tests: Added new unit tests for before and after callbacks, async and sync versions, callback chains and mixed callbacks.
  • Sample Agent: Introduced a new example agent with multiple callbacks showing various behaviors: audit, security, validation, and enhancement. This provides practical usage examples.

@copybara-service copybara-service bot added the google-contributor [Bot] This PR is created by Google label Jul 16, 2025
@copybara-service copybara-service bot force-pushed the copybara/783163207 branch 5 times, most recently from 47f0ba0 to a58daa5 Compare July 16, 2025 20:53
**Highlights:**

-   **Callback Chaining:** Now supports a list of before and after callbacks, as in the non-live version. Callbacks are executed in order, stopping when one returns a response.
-   **Unit Tests:** Added new unit tests for before and after callbacks, async and sync versions, callback chains and mixed callbacks.
-   **Sample Agent:** Introduced a new example agent with multiple callbacks showing various behaviors: audit, security, validation, and enhancement. This provides practical usage examples.

PiperOrigin-RevId: 783884562
@copybara-service copybara-service bot force-pushed the copybara/783163207 branch from a58daa5 to 7415f2c Compare July 16, 2025 20:56
@copybara-service copybara-service bot merged commit 7415f2c into main Jul 16, 2025
@copybara-service copybara-service bot deleted the copybara/783163207 branch July 16, 2025 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
google-contributor [Bot] This PR is created by Google
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant