MistralClient.API.Beta (mistralex_ai v0.1.0)
View SourceBeta API endpoints for experimental Mistral AI features.
This module provides access to experimental features that are in beta testing. These APIs may change without notice and should be used with caution in production.
Available Beta APIs
- Agents API: Create and manage AI agents with specific instructions and tools
- Conversations API: Manage persistent conversations with agents
Usage
# Create an agent
{:ok, agent} = MistralClient.API.Beta.create_agent(%{
name: "Customer Support Agent",
model: "mistral-large-latest",
instructions: "You are a helpful customer support agent."
})
# Start a conversation
{:ok, conversation} = MistralClient.API.Beta.start_conversation(%{
agent_id: agent.id,
inputs: "Hello, I need help with my order."
})
Summary
Functions
@spec beta_available?(MistralClient.Config.t()) :: boolean()
Check if Beta APIs are available.
Returns true if the current API key has access to beta features.
@spec beta_status(MistralClient.Config.t()) :: {:ok, map()} | {:error, term()}
Get beta API status and available features.