feat: implement client interceptors#223
Merged
Merged
Conversation
Co-authored-by: Guglielmo Colombo <guglielmoc@google.com>
guglielmo-san
approved these changes
Dec 3, 2025
ishymko
added a commit
that referenced
this pull request
Dec 3, 2025
Fix for #223 which is not yet released, so overriding changelog entry below. BEGIN_COMMIT_OVERRIDE refactor: properly invoke CallInterceptor.after for async generators END_COMMIT_OVERRIDE
ishymko
added a commit
that referenced
this pull request
Dec 3, 2025
Fix for #223 which is not yet released, so overriding changelog entry below. BEGIN_COMMIT_OVERRIDE refactor: properly invoke CallInterceptor.after for async generators END_COMMIT_OVERRIDE
ishymko
added a commit
that referenced
this pull request
Dec 3, 2025
1. `after` wasn't invoked in case of early return from `before` for executed interceptors as done in non-generators methods. 2. `after` wasn't invoked for non-streaming fallback from `sendMessageStream`. Fix for #223 which is not yet released, so overriding changelog entry below to avoid extra message for unreleased functionality. BEGIN_COMMIT_OVERRIDE refactor: properly invoke CallInterceptor.after for async generators END_COMMIT_OVERRIDE
guglielmo-san
added a commit
that referenced
this pull request
Dec 3, 2025
… optional (#228) # Description This PR changes the `context` parameter in `RequestOptions` from mandatory to optional. Fix for #223 which is not yet released, so overriding changelog entry below to avoid extra message for unreleased functionality. BEGIN_COMMIT_OVERRIDE refactor: change `context` parameter in `RequestOptions` from mandatory to optional END_COMMIT_OVERRIDE
|
love this! We've been moving towards an interceptor pattern for our new backend too. |
guglielmo-san
added a commit
that referenced
this pull request
Dec 8, 2025
# Description This PR add a feature to PR #223 adding the agentCard to the interceptors' parameters. Some values of the agentCard may be necessary at the interceptors level (e.g. security schemes). BEGIN_COMMIT_OVERRIDE refactor: add AgentCard to interceptors parameters END_COMMIT_OVERRIDE
ishymko
added a commit
that referenced
this pull request
Dec 10, 2025
🤖 I have created a release *beep* *boop* --- ## [0.3.6](v0.3.5...v0.3.6) (2025-12-10) ### Features * add support for extendedAgentCard on client side ([#234](#234)) ([3073376](3073376)) * Add support for extension headers on client side ([#227](#227)) ([8c57002](8c57002)) * implement client interceptors ([#223](#223)) ([5694c22](5694c22)) * Implement extended card support on server side ([#197](#197)) ([45014ac](45014ac)) * implement server http+json ([#142](#142)) ([f20e662](f20e662)) * introduce AgentCardResolver ([#225](#225)) ([ddaf7de](ddaf7de)) * introduce transport agnostic client ([#198](#198)) ([94a9848](94a9848)) * server side support for extensions ([5ef7396](5ef7396)) * support authentication on server side ([#195](#195)) ([9872d93](9872d93)) ### Bug Fixes * handle errors occurred in non-blocking sendMessage ([#187](#187)) ([e55c0f4](e55c0f4)) ### Miscellaneous Chores * set version to 0.3.6 ([#191](#191)) ([3f8cea0](3f8cea0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: Ivan Shymko <ishymko@google.com>
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
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.
Description
Implement client interceptors and export multi-transport client types to prepare for upcoming release.
Interceptors support "early return" both before and after transport invocation. For early return before transport invocation client invokes appropriate "after" methods of executed interceptors.
Release-As: 0.3.6