Skip to content

feat: add pre and post processing hooks for tools#58

Open
stenalpjolly wants to merge 3 commits intogoogleapis:mainfrom
stenalpjolly:stenalpjolly_feature_pre_post_processors
Open

feat: add pre and post processing hooks for tools#58
stenalpjolly wants to merge 3 commits intogoogleapis:mainfrom
stenalpjolly:stenalpjolly_feature_pre_post_processors

Conversation

@stenalpjolly
Copy link
Copy Markdown

This PR adds framework-native callbacks for pre and post-processing of tool inputs and outputs to help sanitize input/output to LLMs. It co-locates logic with the agent, leveraging the established security and debugging models of the main application. Includes ToolPreProcessor and ToolPostProcessor interfaces, Tool/Client level injection, and unit tests.

@stenalpjolly stenalpjolly requested a review from a team as a code owner April 7, 2026 05:42
@stenalpjolly stenalpjolly force-pushed the stenalpjolly_feature_pre_post_processors branch from 6f1dbf4 to 207591b Compare April 7, 2026 05:49
@anubhav756
Copy link
Copy Markdown
Contributor

/gcbrun

@stenalpjolly
Copy link
Copy Markdown
Author

/gcbrun

2 similar comments
@stenalpjolly
Copy link
Copy Markdown
Author

/gcbrun

@stenalpjolly
Copy link
Copy Markdown
Author

/gcbrun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants