Converse API
The Amazon Bedrock Converse API offers a standardized method to interact with LLMs available via Amazon Bedrock. It facilitates turn-based communication between users and generative AI models and ensures consistent tool definitions for models that support functions (referred to as function calling).
The significance of the Converse
API lies in its ability to streamline integration. Previously, using the InvokeModel
API required adapting to varying JSON request and response structures from different model providers. With the Converse
API, a uniform format for requests and responses is implemented across all LLMs on Amazon Bedrock, simplifying development and ensuring consistent interaction protocols.
Let us walk through an example of using Converse
API for text generation scenario by leveraging Anthropic Claude 3 Sonnet model. Please ensure you have the required permission for you require permission for bedrock:InvokeModel
operation in order to call Converse
API.