asToolOrNull
Casts this ToolChoice as a Tool and retrieves its aws.sdk.kotlin.services.bedrockagent.model.SpecificToolChoice value. Returns null if the ToolChoice is not a Tool.
Casts this ToolChoice as a Tool and retrieves its aws.sdk.kotlin.services.bedrockagent.model.SpecificToolChoice value. Returns null if the ToolChoice is not a Tool.