🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
feat: add gemini 3 flash (#3585)
Tao Sunac2630cd2068
diff --git a/camel/types/enums.py b/camel/types/enums.pyindex 9ae3692a2..7ff39ce98 100644--- a/camel/types/enums.py+++ b/camel/types/enums.py@@ -245,6 +245,7 @@ class ModelType(UnifiedModelType, Enum):# Gemini modelsGEMINI_3_PRO = "gemini-3-pro-preview"+ GEMINI_3_FLASH = "gemini-3-flash-preview"GEMINI_2_5_FLASH = "gemini-2.5-flash"GEMINI_2_5_PRO = "gemini-2.5-pro"GEMINI_2_0_FLASH = "gemini-2.0-flash"@@ -853,6 +854,7 @@ class ModelType(UnifiedModelType, Enum):"""return self in {ModelType.GEMINI_3_PRO,+ ModelType.GEMINI_3_FLASH,ModelType.GEMINI_2_5_FLASH,ModelType.GEMINI_2_5_PRO,ModelType.GEMINI_2_0_FLASH,@@ -1557,6 +1559,7 @@ class ModelType(UnifiedModelType, Enum):return 512_000elif self in {ModelType.GEMINI_3_PRO,+ ModelType.GEMINI_3_FLASH,ModelType.GEMINI_2_5_FLASH,ModelType.GEMINI_2_5_PRO,ModelType.GEMINI_2_0_FLASH,diff --git a/examples/models/gemini_model_example.py b/examples/models/gemini_model_example.pyindex dfbc902cc..afedcfc72 100644--- a/examples/models/gemini_model_example.py+++ b/examples/models/gemini_model_example.py@@ -69,25 +69,33 @@ You can open this file in any modern web browser to play. It features:'''-# Example of using the gemini-2.5-pro model-model_2_5_pro_pre = ModelFactory.create(+# Example of using the gemini-3-flash model+model_3_flash = ModelFactory.create(model_platform=ModelPlatformType.GEMINI,- model_type=ModelType.GEMINI_2_5_PRO,+ model_type=ModelType.GEMINI_3_FLASH,model_config_dict=GeminiConfig(temperature=0.2).as_dict(),)-camel_agent_pro = ChatAgent(system_message=sys_msg, model=model_2_5_pro_pre)-response_pro = camel_agent_pro.step(user_msg)-print(response_pro.msgs[0].content)+camel_agent_flash = ChatAgent(system_message=sys_msg, model=model_3_flash)+user_msg = """+Explain how Generative AI works in short language.+"""+response_flash = camel_agent_flash.step(user_msg)+print(response_flash.msgs[0].content)'''===============================================================================-Hello and a big hi to the entire CAMEL AI community!+Generative AI works in three simple steps:-It's fantastic to acknowledge your dedication to-the important and fascinating study of autonomous and communicative agents.-Open-source collaboration is the engine of innovation,-and your work is pushing the boundaries of what's possible in AI.+1. **Training:** It "reads" or "looks at" massive amounts of existing data+(like books, code, or images) to learn patterns, styles, and structures.+2. **Prediction:** When you give it a prompt, it doesn't "think"—it+calculates probability. It predicts what word, pixel, or note should come next+based on the patterns it learned.+3. **Creation:** By repeating these predictions millions of times per second,+it generates entirely new content that looks or sounds like it was made by a+human.-Keep up the brilliant research and community building+**In short:** It is a super-powered version of **autocomplete** that uses math+to guess the most likely next piece of information.==============================================================================='''