Skip to content

Bedrock Agent  >  Operations  >  get_knowledge_base

get_knowledge_base

Operation

get_knowledge_base async

get_knowledge_base(input: GetKnowledgeBaseInput, plugins: list[Plugin] | None = None) -> GetKnowledgeBaseOutput

Gets information about a knowledge base.

Parameters:

Name Type Description Default
input GetKnowledgeBaseInput

An instance of GetKnowledgeBaseInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
GetKnowledgeBaseOutput

An instance of GetKnowledgeBaseOutput.

Input

GetKnowledgeBaseInput dataclass

Dataclass for GetKnowledgeBaseInput structure.

Attributes

knowledge_base_id class-attribute instance-attribute
knowledge_base_id: str | None = None

The unique identifier of the knowledge base you want to get information on.

Output

GetKnowledgeBaseOutput dataclass

Dataclass for GetKnowledgeBaseOutput structure.

Attributes

knowledge_base instance-attribute
knowledge_base: KnowledgeBase

Contains details about the knowledge base.