Commit d8c45b5
committed
Return TRecord instead of object in GoogleTextSearch.GetSearchResultsAsync
Changes:
- Update GoogleTextSearch.GetSearchResultsAsync to return KernelSearchResults<GoogleWebPage> instead of KernelSearchResults<object>
- Remove wasteful .Cast<object>() call
- Update test to use strongly-typed GoogleWebPage instead of casting from object
Benefits:
- Eliminates runtime casting overhead
- Provides compile-time type safety
- Improves IntelliSense for consumers
This change aligns with PR #13318 interface fix that changed ITextSearch<TRecord>.GetSearchResultsAsync to return KernelSearchResults<TRecord>.1 parent cbd1265 commit d8c45b5
2 files changed
Lines changed: 4 additions & 4 deletions
File tree
- dotnet/src/Plugins
- Plugins.UnitTests/Web/Google
- Plugins.Web/Google
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments