Learn how to integrate Mistral AI models for chat completions and contextualized interactions.
The Mistral AI block lets you connect your agent with Mistral’s language models to generate chat completions from user input and display the responses in the Agent Dialog.
Using the Mistral AI block, you can generate chat completions based on user queries. The integration supports the Dialogue message type, which allows the assistant to maintain a conversation history for a smooth and contextualized interaction.
Below is an example JSON payload to interact with Mistral’s chat completion API:
Copy
{ "messages": [ { "role": "user", "content": "Hello, how can you help me?" }, { "role": "assistant", "content": "I can assist with various tasks. What do you need help with?" } ], "model": "mistral-7b-v0.1", "temperature": 0.7}