Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
pip install traceAI-mistralai
import os
os.environ["FI_API_KEY"] = "your-futureagi-api-key"
os.environ["FI_SECRET_KEY"] = "your-futureagi-secret-key"
os.environ["MISTRAL_API_KEY"] = "your-mistral-api-key"
from fi_instrumentation import register
from fi_instrumentation.fi_types import ProjectType
trace_provider = register(
project_type=ProjectType.OBSERVE,
project_name="mistralai_project",
)
from traceai_mistralai import MistralAIInstrumentor
MistralAIInstrumentor().instrument(tracer_provider=trace_provider)
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
response = client.agents.complete(
agent_id="agent_id",
messages=[
{"role": "user", "content": "plan a vacation for me in Tbilisi"},
],
)
print(response)
Was this page helpful?