Instrument your Project with MistralAI Instrumentor. This step ensures that all interactions with the MistralAI are tracked and monitored.
from traceai_mistralai import MistralAIInstrumentorMistralAIInstrumentor().instrument(tracer_provider=trace_provider)
5. Create Mistral AI Components
Set up your Mistral AI client and use your application as you normally would. Our Instrumentor will automatically trace and send the telemetry data to our platform.
from mistralai import Mistralclient = 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)