asKnowledgeBase
Casts this RetrieverConfiguration as a KnowledgeBase and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.KnowledgeBaseRetrieverConfiguration value. Throws an exception if the RetrieverConfiguration is not a KnowledgeBase.