from langchain_mistralai import ChatMistralAI llm = ChatMistralAI( model="mistral-small-latest", temperature=0, max_retries=2, # other params... ) llm_structured = ChatMistralAI( model="mistral-small-latest", temperature=0, max_retries=2, # other params... ).with_structured_output(method="json_mode")