search_discoverable_registry_records
¶
search_discoverable_registry_records(
search_query: SearchQuery,
registry_ids: RegistryIdList,
*,
config_overrides: Optional[AgentRegistryClientConfig] = None,
max_results: Optional[int] = None,
filters: Optional[MetadataFilterExpression] = None,
) -> SearchDiscoverableRegistryRecordsResponse
Searches the discoverable registry records in a registry using a natural language query. Returns metadata for the matching records ordered by relevance.
Parameters:
-
search_query(SearchQuery) –The natural language query to search for matching registry records.
-
registry_ids(RegistryIdList) –The registry identifiers to search within. Currently, you must specify exactly one registry identifier. You can provide either the full Amazon Web Services Resource Name (ARN) or the registry ID.
-
max_results(Optional[int], default:None) –The maximum number of results to return. Valid values are 1 through 20. The default value is 10.
-
filters(Optional[MetadataFilterExpression], default:None) –An optional structured JSON metadata filter that narrows the search results. Supports the field-level operators
$eq,$ne, and$in, and the logical operators$andand$oron filterable fields.Specifies additional filtering on custom metadata fields using the
customMetadata.{key}prefix. For example, to filter by a custom metadata field:{"customMetadata.environment": {"$eq": "production"}}. For a Boolean field, you can also use a native JSON boolean value, for example:{"customMetadata.requiresApproval": {"$eq": true}}.
Raises:
-
AccessDeniedException–The caller is not authorized to perform the requested action.
-
InternalServerException–The request failed due to an unexpected internal error; the caller may retry.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was denied due to request throttling; the caller may retry after a delay.
-
UnauthorizedException–The request could not be authenticated.
-
ValidationException–The request failed validation of one or more input fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_agent_registry/_services/agent_registry.py
311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 | |