Commit 1f7550e
Fix broker shim to query MetadataService for runtime-registered metadata
The broker shim was only querying SchemaRegistry, which doesn't contain
agents/tools registered at runtime via metadataService.register().
Changes:
- Merge types from both SchemaRegistry and MetadataService.registry
- Query MetadataService.list() for metadata items alongside SchemaRegistry
- Deduplicate items by name when merging from both sources
This ensures that agents and tools registered by AIServicePlugin during
the start() phase are visible to Studio's sidebar.
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/6dbd64f2-446d-4992-9adb-659a1283ec1b
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent 4610c03 commit 1f7550e
1 file changed
Lines changed: 42 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
181 | 184 | | |
182 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
183 | 198 | | |
184 | 199 | | |
185 | 200 | | |
| |||
206 | 221 | | |
207 | 222 | | |
208 | 223 | | |
209 | | - | |
| 224 | + | |
210 | 225 | | |
211 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
212 | 251 | | |
213 | 252 | | |
214 | 253 | | |
| |||
0 commit comments