File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 2828 ResourcePostFetchResult ,
2929 ResourcePreFetchPayload ,
3030 ResourcePreFetchResult ,
31+ ToolPostInvokePayload ,
32+ ToolPostInvokeResult ,
3133)
3234
3335
@@ -272,3 +274,24 @@ async def resource_post_fetch(
272274 "original_uri" : context .get_state ("original_uri" )
273275 }
274276 )
277+
278+ async def tool_post_invoke (
279+ self , payload : ToolPostInvokePayload , context : PluginContext
280+ ) -> ToolPostInvokeResult :
281+ """Handle tool invocation results.
282+
283+ This plugin focuses on resource filtering, so tool invocations pass through unmodified.
284+
285+ Args:
286+ payload: The tool invocation result payload.
287+ context: Plugin execution context.
288+
289+ Returns:
290+ ToolPostInvokeResult indicating to continue processing without modifications.
291+ """
292+ # This plugin is focused on resource filtering, not tool invocations
293+ # Simply pass through without modification
294+ return ToolPostInvokeResult (
295+ continue_processing = True ,
296+ modified_payload = payload
297+ )
You can’t perform that action at this time.
0 commit comments