Skip to content

Commit 1954429

Browse files
authored
Fix resource filter (#1131)
Signed-off-by: Mihai Criveti <[email protected]>
1 parent da7c59a commit 1954429

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

plugins/resource_filter/resource_filter.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
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+
)

0 commit comments

Comments
 (0)