update_agent_knowledge_base
¶
update_agent_knowledge_base(
agent_id: Id,
agent_version: DraftVersion,
knowledge_base_id: Id,
*,
config_overrides: Optional[BedrockAgentClientConfig] = None,
description: Optional[Description] = None,
knowledge_base_state: Optional[KnowledgeBaseState] = None,
) -> UpdateAgentKnowledgeBaseResponse
Updates the configuration for a knowledge base that has been associated with an agent.
Parameters:
-
agent_id(Id) –The unique identifier of the agent associated with the knowledge base that you want to update.
-
agent_version(DraftVersion) –The version of the agent associated with the knowledge base that you want to update.
-
knowledge_base_id(Id) –The unique identifier of the knowledge base that has been associated with an agent.
-
description(Optional[Description], default:None) –Specifies a new description for the knowledge base associated with an agent.
-
knowledge_base_state(Optional[KnowledgeBaseState], default:None) –Specifies whether the agent uses the knowledge base or not when sending an InvokeAgent request.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
ConflictException–There was a conflict performing an operation.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agent/_services/bedrock_agent.py
5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 | |