update_agent_knowledge_base
async
¶
update_agent_knowledge_base(
agent_id: Id,
agent_version: DraftVersion,
knowledge_base_id: Id,
*,
config_overrides: Optional[AsyncBedrockAgentClientConfig] = 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/async_bedrock_agent.py
5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 | |