camel-ai 0.2.43__tar.gz → 0.2.44__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of camel-ai might be problematic. Click here for more details.
- {camel_ai-0.2.43 → camel_ai-0.2.44}/PKG-INFO +1 -1
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/__init__.py +1 -1
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datasets/few_shot_generator.py +1 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/environments/single_step.py +14 -2
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/extractors/python_strategies.py +14 -5
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/togetherai_model.py +106 -31
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/browser_toolkit.py +4 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/types/enums.py +7 -1
- {camel_ai-0.2.43 → camel_ai-0.2.44}/pyproject.toml +1 -1
- {camel_ai-0.2.43 → camel_ai-0.2.44}/.gitignore +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/LICENSE +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/README.md +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/_types.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/_utils.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/chat_agent.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/critic_agent.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/deductive_reasoner_agent.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/embodied_agent.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/knowledge_graph_agent.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/multi_hop_generator_agent.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/programmed_agent_instruction.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/repo_agent.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/role_assignment_agent.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/search_agent.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/task_agent.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/tool_agents/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/tool_agents/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/agents/tool_agents/hugging_face_tool_agent.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/benchmarks/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/benchmarks/apibank.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/benchmarks/apibench.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/benchmarks/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/benchmarks/gaia.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/benchmarks/nexus.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/benchmarks/ragbench.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/bots/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/bots/discord/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/bots/discord/discord_app.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/bots/discord/discord_installation.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/bots/discord/discord_store.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/bots/slack/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/bots/slack/models.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/bots/slack/slack_app.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/bots/telegram_bot.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/aiml_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/anthropic_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/base_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/cohere_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/deepseek_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/gemini_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/groq_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/internlm_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/litellm_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/mistral_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/modelscope_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/moonshot_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/nvidia_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/ollama_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/openai_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/openrouter_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/ppio_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/qwen_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/reka_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/samba_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/sglang_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/siliconflow_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/togetherai_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/vllm_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/yi_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/configs/zhipuai_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/data_collector/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/data_collector/alpaca_collector.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/data_collector/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/data_collector/sharegpt_collector.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/cot_datagen.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/evol_instruct/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/evol_instruct/evol_instruct.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/evol_instruct/scorer.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/evol_instruct/templates.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/self_improving_cot.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/self_instruct/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/self_instruct/filter/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/self_instruct/filter/filter_function.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/self_instruct/filter/filter_registry.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/self_instruct/filter/instruction_filter.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/self_instruct/self_instruct.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/self_instruct/templates.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/source2synth/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/source2synth/data_processor.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/source2synth/models.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/source2synth/user_data_processor_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datahubs/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datahubs/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datahubs/huggingface.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datahubs/models.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datasets/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datasets/base_generator.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datasets/models.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datasets/self_instruct_generator.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datasets/static_dataset.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/embeddings/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/embeddings/azure_embedding.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/embeddings/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/embeddings/jina_embedding.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/embeddings/mistral_embedding.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/embeddings/openai_compatible_embedding.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/embeddings/openai_embedding.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/embeddings/sentence_transformers_embeddings.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/embeddings/together_embedding.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/embeddings/vlm_embedding.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/environments/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/environments/models.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/environments/multi_step.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/environments/tic_tac_toe.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/extractors/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/extractors/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/generators.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/human.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/interpreters/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/interpreters/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/interpreters/docker/Dockerfile +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/interpreters/docker_interpreter.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/interpreters/e2b_interpreter.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/interpreters/internal_python_interpreter.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/interpreters/interpreter_error.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/interpreters/ipython_interpreter.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/interpreters/subprocess_interpreter.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/loaders/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/loaders/apify_reader.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/loaders/base_io.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/loaders/chunkr_reader.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/loaders/crawl4ai_reader.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/loaders/firecrawl_reader.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/loaders/jina_url_reader.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/loaders/mineru_extractor.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/loaders/pandas_reader.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/loaders/unstructured_io.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/logger.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/memories/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/memories/agent_memories.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/memories/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/memories/blocks/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/memories/blocks/chat_history_block.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/memories/blocks/vectordb_block.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/memories/context_creators/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/memories/context_creators/score_based.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/memories/records.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/messages/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/messages/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/messages/conversion/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/messages/conversion/alpaca.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/messages/conversion/conversation_models.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/messages/conversion/sharegpt/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/messages/conversion/sharegpt/function_call_formatter.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/messages/conversion/sharegpt/hermes/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/messages/conversion/sharegpt/hermes/hermes_function_formatter.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/messages/func_message.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/_utils.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/aiml_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/anthropic_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/azure_openai_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/base_audio_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/base_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/cohere_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/deepseek_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/fish_audio_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/gemini_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/groq_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/internlm_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/litellm_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/mistral_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/model_factory.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/model_manager.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/modelscope_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/moonshot_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/nemotron_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/nvidia_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/ollama_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/openai_audio_models.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/openai_compatible_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/openai_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/openrouter_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/ppio_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/qwen_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/reka_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/reward/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/reward/base_reward_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/reward/evaluator.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/reward/nemotron_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/reward/skywork_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/samba_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/sglang_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/siliconflow_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/stub_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/vllm_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/volcano_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/yi_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/models/zhipuai_model.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/personas/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/personas/persona.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/personas/persona_hub.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/ai_society.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/code.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/evaluation.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/generate_text_embedding_data.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/image_craft.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/misalignment.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/multi_condition_image_craft.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/object_recognition.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/persona_hub.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/prompt_templates.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/role_description_prompt_template.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/solution_extraction.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/task_prompt_template.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/translation.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/prompts/video_description_prompt.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/py.typed +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/responses/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/responses/agent_responses.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/retrievers/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/retrievers/auto_retriever.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/retrievers/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/retrievers/bm25_retriever.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/retrievers/cohere_rerank_retriever.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/retrievers/hybrid_retrival.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/retrievers/vector_retriever.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/runtime/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/runtime/api.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/runtime/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/runtime/configs.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/runtime/docker_runtime.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/runtime/llm_guard_runtime.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/runtime/remote_http_runtime.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/runtime/utils/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/runtime/utils/function_risk_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/runtime/utils/ignore_risk_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/schemas/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/schemas/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/schemas/openai_converter.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/schemas/outlines_converter.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/societies/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/societies/babyagi_playing.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/societies/role_playing.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/societies/workforce/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/societies/workforce/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/societies/workforce/prompts.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/societies/workforce/role_playing_worker.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/societies/workforce/single_agent_worker.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/societies/workforce/task_channel.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/societies/workforce/utils.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/societies/workforce/worker.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/societies/workforce/workforce.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/graph_storages/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/graph_storages/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/graph_storages/graph_element.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/graph_storages/nebula_graph.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/graph_storages/neo4j_graph.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/key_value_storages/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/key_value_storages/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/key_value_storages/in_memory.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/key_value_storages/json.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/key_value_storages/mem0_cloud.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/key_value_storages/redis.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/object_storages/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/object_storages/amazon_s3.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/object_storages/azure_blob.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/object_storages/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/object_storages/google_cloud.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/vectordb_storages/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/vectordb_storages/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/vectordb_storages/milvus.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/vectordb_storages/qdrant.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/storages/vectordb_storages/tidb.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/tasks/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/tasks/task.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/tasks/task_prompt.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/terminators/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/terminators/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/terminators/response_terminator.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/terminators/token_limit_terminator.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/arxiv_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/ask_news_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/audio_analysis_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/code_execution.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/dalle_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/dappier_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/data_commons_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/excel_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/file_write_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/function_tool.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/github_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/google_calendar_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/google_maps_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/google_scholar_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/human_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/image_analysis_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/linkedin_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/math_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/mcp_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/memory_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/meshy_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/mineru_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/networkx_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/notion_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/biztoc/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/biztoc/ai-plugin.json +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/biztoc/openapi.yaml +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/coursera/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/coursera/openapi.yaml +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/create_qr_code/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/create_qr_code/openapi.yaml +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/klarna/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/klarna/openapi.yaml +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/nasa_apod/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/nasa_apod/openapi.yaml +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/outschool/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/outschool/ai-plugin.json +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/outschool/openapi.yaml +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/outschool/paths/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/outschool/paths/get_classes.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/outschool/paths/search_teachers.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/security_config.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/speak/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/speak/openapi.yaml +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/web_scraper/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/web_scraper/ai-plugin.json +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/web_scraper/openapi.yaml +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/web_scraper/paths/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_specs/web_scraper/paths/scraper.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/open_api_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/openai_agent_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/openbb_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/page_script.js +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/pubmed_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/reddit_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/retrieval_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/search_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/searxng_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/semantic_scholar_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/slack_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/stripe_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/sympy_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/terminal_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/thinking_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/twitter_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/video_analysis_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/video_download_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/weather_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/whatsapp_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/toolkits/zapier_toolkit.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/types/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/types/agents/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/types/agents/tool_calling_record.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/types/openai_types.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/types/unified_model_type.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/utils/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/utils/async_func.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/utils/chunker/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/utils/chunker/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/utils/chunker/code_chunker.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/utils/chunker/uio_chunker.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/utils/commons.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/utils/constants.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/utils/deduplication.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/utils/mcp.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/utils/response_format.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/utils/token_counting.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/verifiers/__init__.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/verifiers/base.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/verifiers/math_verifier.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/verifiers/models.py +0 -0
- {camel_ai-0.2.43 → camel_ai-0.2.44}/camel/verifiers/python_verifier.py +0 -0
|
@@ -200,7 +200,13 @@ class SingleStepEnv:
|
|
|
200
200
|
self._states_done = [False] * self.current_batch_size
|
|
201
201
|
|
|
202
202
|
observations = [
|
|
203
|
-
Observation(
|
|
203
|
+
Observation(
|
|
204
|
+
question=sample.question,
|
|
205
|
+
context={},
|
|
206
|
+
metadata=sample.metadata
|
|
207
|
+
if sample.metadata is not None
|
|
208
|
+
else {},
|
|
209
|
+
)
|
|
204
210
|
for sample in self._states
|
|
205
211
|
]
|
|
206
212
|
|
|
@@ -214,7 +220,13 @@ class SingleStepEnv:
|
|
|
214
220
|
self._states_done = [False] * batch_size
|
|
215
221
|
|
|
216
222
|
observations = [
|
|
217
|
-
Observation(
|
|
223
|
+
Observation(
|
|
224
|
+
question=sample.question,
|
|
225
|
+
context={},
|
|
226
|
+
metadata=sample.metadata
|
|
227
|
+
if sample.metadata is not None
|
|
228
|
+
else {},
|
|
229
|
+
)
|
|
218
230
|
for sample in self._states
|
|
219
231
|
]
|
|
220
232
|
|
|
@@ -22,21 +22,30 @@ logger = get_logger(__name__)
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class BoxedStrategy(BaseExtractorStrategy):
|
|
25
|
-
r"""Extracts content from \\boxed{} environments."""
|
|
25
|
+
r"""Extracts content from \\boxed{} and \boxed{} environments."""
|
|
26
26
|
|
|
27
27
|
async def extract(self, text: str) -> Optional[str]:
|
|
28
|
-
r"""Extract content from \\boxed{} environments.
|
|
28
|
+
r"""Extract content from \\boxed{} and \boxed{} environments.
|
|
29
29
|
|
|
30
30
|
Args:
|
|
31
31
|
text (str): The input text to process.
|
|
32
32
|
|
|
33
33
|
Returns:
|
|
34
|
-
Optional[str]: Content inside \\boxed{} if found, else
|
|
34
|
+
Optional[str]: Content inside \\boxed{} or \boxed{} if found, else
|
|
35
|
+
None.
|
|
35
36
|
"""
|
|
36
37
|
# Find the start of the boxed content
|
|
37
38
|
boxed_pattern = "\\boxed{"
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
single_backslash_boxed_pattern = "\boxed{"
|
|
40
|
+
|
|
41
|
+
if (
|
|
42
|
+
boxed_pattern not in text
|
|
43
|
+
and single_backslash_boxed_pattern not in text
|
|
44
|
+
):
|
|
45
|
+
logger.debug(
|
|
46
|
+
f"Patterns '{boxed_pattern}' or "
|
|
47
|
+
f"'{single_backslash_boxed_pattern}' not found in text: {text}"
|
|
48
|
+
)
|
|
40
49
|
return None
|
|
41
50
|
|
|
42
51
|
start_idx = text.find(boxed_pattern) + len(boxed_pattern)
|
|
@@ -96,70 +96,145 @@ class TogetherAIModel(BaseModelBackend):
|
|
|
96
96
|
base_url=self._url,
|
|
97
97
|
)
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
@property
|
|
100
|
+
def token_counter(self) -> BaseTokenCounter:
|
|
101
|
+
r"""Initialize the token counter for the model backend.
|
|
102
|
+
|
|
103
|
+
Returns:
|
|
104
|
+
BaseTokenCounter: The token counter following the model's
|
|
105
|
+
tokenization style.
|
|
106
|
+
"""
|
|
107
|
+
if not self._token_counter:
|
|
108
|
+
self._token_counter = OpenAITokenCounter(ModelType.GPT_4O_MINI)
|
|
109
|
+
return self._token_counter
|
|
110
|
+
|
|
111
|
+
def _run(
|
|
100
112
|
self,
|
|
101
113
|
messages: List[OpenAIMessage],
|
|
102
114
|
response_format: Optional[Type[BaseModel]] = None,
|
|
103
115
|
tools: Optional[List[Dict[str, Any]]] = None,
|
|
104
|
-
) -> Union[ChatCompletion,
|
|
116
|
+
) -> Union[ChatCompletion, Stream[ChatCompletionChunk]]:
|
|
105
117
|
r"""Runs inference of OpenAI chat completion.
|
|
106
118
|
|
|
107
119
|
Args:
|
|
108
120
|
messages (List[OpenAIMessage]): Message list with the chat history
|
|
109
121
|
in OpenAI API format.
|
|
122
|
+
response_format (Optional[Type[BaseModel]]): The format of the
|
|
123
|
+
response.
|
|
124
|
+
tools (Optional[List[Dict[str, Any]]]): The schema of the tools to
|
|
125
|
+
use for the request.
|
|
110
126
|
|
|
111
127
|
Returns:
|
|
112
|
-
Union[ChatCompletion,
|
|
128
|
+
Union[ChatCompletion, Stream[ChatCompletionChunk]]:
|
|
113
129
|
`ChatCompletion` in the non-stream mode, or
|
|
114
|
-
`
|
|
130
|
+
`Stream[ChatCompletionChunk]` in the stream mode.
|
|
115
131
|
"""
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
response = await self._async_client.chat.completions.create(
|
|
119
|
-
messages=messages,
|
|
120
|
-
model=self.model_type,
|
|
121
|
-
**self.model_config_dict,
|
|
132
|
+
response_format = response_format or self.model_config_dict.get(
|
|
133
|
+
"response_format", None
|
|
122
134
|
)
|
|
123
|
-
|
|
135
|
+
if response_format:
|
|
136
|
+
return self._request_parse(messages, response_format, tools)
|
|
137
|
+
else:
|
|
138
|
+
return self._request_chat_completion(messages, tools)
|
|
124
139
|
|
|
125
|
-
def
|
|
140
|
+
async def _arun(
|
|
126
141
|
self,
|
|
127
142
|
messages: List[OpenAIMessage],
|
|
128
143
|
response_format: Optional[Type[BaseModel]] = None,
|
|
129
144
|
tools: Optional[List[Dict[str, Any]]] = None,
|
|
130
|
-
) -> Union[ChatCompletion,
|
|
131
|
-
r"""Runs inference of OpenAI chat completion.
|
|
145
|
+
) -> Union[ChatCompletion, AsyncStream[ChatCompletionChunk]]:
|
|
146
|
+
r"""Runs inference of OpenAI chat completion in async mode.
|
|
132
147
|
|
|
133
148
|
Args:
|
|
134
149
|
messages (List[OpenAIMessage]): Message list with the chat history
|
|
135
150
|
in OpenAI API format.
|
|
151
|
+
response_format (Optional[Type[BaseModel]]): The format of the
|
|
152
|
+
response.
|
|
153
|
+
tools (Optional[List[Dict[str, Any]]]): The schema of the tools to
|
|
154
|
+
use for the request.
|
|
136
155
|
|
|
137
156
|
Returns:
|
|
138
|
-
Union[ChatCompletion,
|
|
157
|
+
Union[ChatCompletion, AsyncStream[ChatCompletionChunk]]:
|
|
139
158
|
`ChatCompletion` in the non-stream mode, or
|
|
140
|
-
`
|
|
159
|
+
`AsyncStream[ChatCompletionChunk]` in the stream mode.
|
|
141
160
|
"""
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
161
|
+
response_format = response_format or self.model_config_dict.get(
|
|
162
|
+
"response_format", None
|
|
163
|
+
)
|
|
164
|
+
if response_format:
|
|
165
|
+
return await self._arequest_parse(messages, response_format, tools)
|
|
166
|
+
else:
|
|
167
|
+
return await self._arequest_chat_completion(messages, tools)
|
|
168
|
+
|
|
169
|
+
def _request_chat_completion(
|
|
170
|
+
self,
|
|
171
|
+
messages: List[OpenAIMessage],
|
|
172
|
+
tools: Optional[List[Dict[str, Any]]] = None,
|
|
173
|
+
) -> Union[ChatCompletion, Stream[ChatCompletionChunk]]:
|
|
174
|
+
request_config = self.model_config_dict.copy()
|
|
175
|
+
|
|
176
|
+
if tools:
|
|
177
|
+
request_config["tools"] = tools
|
|
178
|
+
|
|
179
|
+
return self._client.chat.completions.create(
|
|
145
180
|
messages=messages,
|
|
146
181
|
model=self.model_type,
|
|
147
|
-
**
|
|
182
|
+
**request_config,
|
|
148
183
|
)
|
|
149
|
-
return response
|
|
150
184
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
185
|
+
async def _arequest_chat_completion(
|
|
186
|
+
self,
|
|
187
|
+
messages: List[OpenAIMessage],
|
|
188
|
+
tools: Optional[List[Dict[str, Any]]] = None,
|
|
189
|
+
) -> Union[ChatCompletion, AsyncStream[ChatCompletionChunk]]:
|
|
190
|
+
request_config = self.model_config_dict.copy()
|
|
154
191
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
tokenization style.
|
|
158
|
-
"""
|
|
192
|
+
if tools:
|
|
193
|
+
request_config["tools"] = tools
|
|
159
194
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
195
|
+
return await self._async_client.chat.completions.create(
|
|
196
|
+
messages=messages,
|
|
197
|
+
model=self.model_type,
|
|
198
|
+
**request_config,
|
|
199
|
+
)
|
|
200
|
+
|
|
201
|
+
def _request_parse(
|
|
202
|
+
self,
|
|
203
|
+
messages: List[OpenAIMessage],
|
|
204
|
+
response_format: Type[BaseModel],
|
|
205
|
+
tools: Optional[List[Dict[str, Any]]] = None,
|
|
206
|
+
) -> ChatCompletion:
|
|
207
|
+
request_config = self.model_config_dict.copy()
|
|
208
|
+
|
|
209
|
+
request_config["response_format"] = response_format
|
|
210
|
+
|
|
211
|
+
if tools is not None:
|
|
212
|
+
request_config["tools"] = tools
|
|
213
|
+
|
|
214
|
+
return self._client.beta.chat.completions.parse(
|
|
215
|
+
messages=messages,
|
|
216
|
+
model=self.model_type,
|
|
217
|
+
**request_config,
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
async def _arequest_parse(
|
|
221
|
+
self,
|
|
222
|
+
messages: List[OpenAIMessage],
|
|
223
|
+
response_format: Type[BaseModel],
|
|
224
|
+
tools: Optional[List[Dict[str, Any]]] = None,
|
|
225
|
+
) -> ChatCompletion:
|
|
226
|
+
request_config = self.model_config_dict.copy()
|
|
227
|
+
|
|
228
|
+
request_config["response_format"] = response_format
|
|
229
|
+
|
|
230
|
+
if tools is not None:
|
|
231
|
+
request_config["tools"] = tools
|
|
232
|
+
|
|
233
|
+
return await self._async_client.beta.chat.completions.parse(
|
|
234
|
+
messages=messages,
|
|
235
|
+
model=self.model_type,
|
|
236
|
+
**request_config,
|
|
237
|
+
)
|
|
163
238
|
|
|
164
239
|
def check_model_config(self):
|
|
165
240
|
r"""Check whether the model configuration contains any
|
|
@@ -1175,6 +1175,8 @@ out the information you need. Sometimes they are extremely useful.
|
|
|
1175
1175
|
message = BaseMessage.make_user_message(
|
|
1176
1176
|
role_name='user', content=observe_prompt, image_list=[img]
|
|
1177
1177
|
)
|
|
1178
|
+
# Reset the history message of web_agent.
|
|
1179
|
+
self.web_agent.reset()
|
|
1178
1180
|
resp = self.web_agent.step(message)
|
|
1179
1181
|
|
|
1180
1182
|
resp_content = resp.msgs[0].content
|
|
@@ -1404,6 +1406,8 @@ Your output should be in json format, including the following fields:
|
|
|
1404
1406
|
- `if_need_replan`: bool, A boolean value indicating whether the task needs to be fundamentally replanned.
|
|
1405
1407
|
- `replanned_schema`: str, The replanned schema for the task, which should not be changed too much compared with the original one. If the task does not need to be replanned, the value should be an empty string.
|
|
1406
1408
|
"""
|
|
1409
|
+
# Reset the history message of planning_agent.
|
|
1410
|
+
self.planning_agent.reset()
|
|
1407
1411
|
resp = self.planning_agent.step(replanning_prompt)
|
|
1408
1412
|
resp_dict = _parse_json_output(resp.msgs[0].content)
|
|
1409
1413
|
|
|
@@ -79,6 +79,10 @@ class ModelType(UnifiedModelType, Enum):
|
|
|
79
79
|
TOGETHER_LLAMA_3_3_70B = "meta-llama/Llama-3.3-70B-Instruct-Turbo"
|
|
80
80
|
TOGETHER_MIXTRAL_8_7B = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
|
81
81
|
TOGETHER_MISTRAL_7B = "mistralai/Mistral-7B-Instruct-v0.1"
|
|
82
|
+
TOGETHER_LLAMA_4_MAVERICK = (
|
|
83
|
+
"meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8"
|
|
84
|
+
)
|
|
85
|
+
TOGETHER_LLAMA_4_SCOUT = "meta-llama/Llama-4-Scout-17B-16E-Instruct"
|
|
82
86
|
|
|
83
87
|
# PPIO platform models support tool calling
|
|
84
88
|
PPIO_DEEPSEEK_R1_TURBO = "deepseek/deepseek-r1-turbo"
|
|
@@ -851,11 +855,13 @@ class ModelType(UnifiedModelType, Enum):
|
|
|
851
855
|
ModelType.GEMINI_2_0_FLASH_LITE_PREVIEW,
|
|
852
856
|
ModelType.GEMINI_2_0_PRO_EXP, # Not given in doc, assume the same
|
|
853
857
|
ModelType.GLM_4_LONG,
|
|
858
|
+
ModelType.TOGETHER_LLAMA_4_MAVERICK,
|
|
859
|
+
ModelType.OPENROUTER_LLAMA_4_MAVERICK,
|
|
854
860
|
}:
|
|
855
861
|
return 1_048_576
|
|
856
862
|
elif self in {
|
|
857
863
|
ModelType.QWEN_LONG,
|
|
858
|
-
ModelType.
|
|
864
|
+
ModelType.TOGETHER_LLAMA_4_SCOUT,
|
|
859
865
|
}:
|
|
860
866
|
return 10_000_000
|
|
861
867
|
else:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/self_instruct/filter/instruction_filter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{camel_ai-0.2.43 → camel_ai-0.2.44}/camel/datagen/source2synth/user_data_processor_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|