afterToolCall method
Called after a tool has returned. May modify result (e.g., the
oversized-result guard swaps in an ArtifactReference).
Implementation
Future<ToolResult> afterToolCall(
ToolCallContext ctx,
ToolResult result,
) async {
return result;
}