Does crew ai support agents and tasks definitions in other language than english ?
I tried to define some in french language and the logs confirm the prompt in french
…
[2025-03-16 08:24:58][ AGENT 'AI LLMS SENIOR DATA RESEARCHER
’ STARTED TASK]: 2025-03-16 08:24:58.679168 Agent: AI LLMs Senior Data Researcher Task: Menez une recherche approfondie sur AI LLMs. Assurez-vous de trouver toute information intéressante et pertinente, en tenant compte de l’année en cours, qui est 2025.
but the response from the LLM (i’m using mistral) is in english
Agent: AI LLMs Senior Data Researcher
Final Answer: 1. Dynamic Multi-Modal Learning: AI LLMs have made significant strides in multi-modal learning, seamlessly integrating text, audio, and video inputs for more natural and contextually rich language understanding.2. Causal Inference and Explanation: Advanced AI LLMs are now capable of understanding causal relationships in language, generating more accurate, reliable, and explainable outputs for various applications.3. Meta-Learning for Faster Adaptation: New techniques in meta-learning enable AI LLMs to quickly adapt to new language tasks and domains with minimal fine-tuning, allowing for more efficient and widespread use.
The LLM is receiving a prompt that has parts in French and parts in English. Although your instructions are in French, the instructions that the CrewAI library itself adds to glue everything together are in English. So you end up depending on the LLM’s ability to correctly understand which language it should respond in. My instructions are in Portuguese for most of my tasks, but my prompts are large enough that Portuguese is identified as the predominant language amid the few instructions in English.
In any case, I suggest that you help the LLM respond in the correct language. For example, in the expected_output attribute of your Task, you can add “[respond exclusively in French]” or “[répondre exclusivement en français]”.
Happy you got the results you want. With LLMs you need to be specific with everything if you want it to be a bit more deterministic. Give it steps to execute certain processes and the results you expect. That way you will get higher quality results