Setup
Basic Usage
String Shorthand
Parameters
str
default:"mistral-large-latest"
Model identifier.
str
Mistral API key. Defaults to
MISTRAL_API_KEY.float
Sampling temperature.
int
Maximum output tokens.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use Mistral AI models.
export MISTRAL_API_KEY="..."
pip install mistralai
from definable.model.mistral import MistralChat
from definable.model.message import Message
model = MistralChat(id="mistral-large-latest")
response = model.invoke(
messages=[Message(role="user", content="Hello!")],
assistant_message=Message(role="assistant", content=""),
)
print(response.content)
agent = Agent(model="mistral/mistral-large-latest")
MISTRAL_API_KEY.from definable.model.mistral import MistralChat