AgentsforBedrock / Client / get_agent_knowledge_base
get_agent_knowledge_base#
- AgentsforBedrock.Client.get_agent_knowledge_base(**kwargs)#
Gets a knowledge base associated to an existing Amazon Bedrock Agent Version
See also: AWS API Documentation
Request Syntax
response = client.get_agent_knowledge_base( agentId='string', agentVersion='string', knowledgeBaseId='string' )
- Parameters:
agentId (string) –
[REQUIRED]
Id generated at the server side when an Agent is created
agentVersion (string) –
[REQUIRED]
Version number generated when a version is created
knowledgeBaseId (string) –
[REQUIRED]
Id generated at the server side when a Knowledge Base is associated
- Return type:
dict
- Returns:
Response Syntax
{ 'agentKnowledgeBase': { 'agentId': 'string', 'agentVersion': 'string', 'knowledgeBaseId': 'string', 'description': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'knowledgeBaseState': 'ENABLED'|'DISABLED' } }
Response Structure
(dict) –
Get Agent Knowledge Base Response
agentKnowledgeBase (dict) –
Contains the information of an Agent Knowledge Base.
agentId (string) –
Identifier for a resource.
agentVersion (string) –
Agent Version.
knowledgeBaseId (string) –
Identifier for a resource.
description (string) –
Description of the Resource.
createdAt (datetime) –
Time Stamp.
updatedAt (datetime) –
Time Stamp.
knowledgeBaseState (string) –
State of the knowledge base; whether it is enabled or disabled
Exceptions
AgentsforBedrock.Client.exceptions.ThrottlingException
AgentsforBedrock.Client.exceptions.AccessDeniedException
AgentsforBedrock.Client.exceptions.ValidationException
AgentsforBedrock.Client.exceptions.InternalServerException
AgentsforBedrock.Client.exceptions.ResourceNotFoundException