camel-ai 0.2.45__tar.gz → 0.2.47__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.45 → camel_ai-0.2.47}/PKG-INFO +13 -1
- {camel_ai-0.2.45 → camel_ai-0.2.47}/README.md +5 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/__init__.py +1 -1
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/__init__.py +6 -0
- camel_ai-0.2.47/camel/configs/bedrock_config.py +73 -0
- camel_ai-0.2.47/camel/configs/lmstudio_config.py +94 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/qwen_config.py +3 -3
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datasets/few_shot_generator.py +19 -3
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datasets/models.py +1 -1
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/loaders/__init__.py +2 -0
- camel_ai-0.2.47/camel/loaders/scrapegraph_reader.py +96 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/__init__.py +4 -0
- camel_ai-0.2.47/camel/models/aiml_model.py +91 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/anthropic_model.py +11 -76
- camel_ai-0.2.47/camel/models/aws_bedrock_model.py +112 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/deepseek_model.py +11 -44
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/gemini_model.py +10 -72
- camel_ai-0.2.47/camel/models/groq_model.py +90 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/internlm_model.py +11 -61
- camel_ai-0.2.47/camel/models/lmstudio_model.py +82 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/model_factory.py +7 -1
- camel_ai-0.2.47/camel/models/modelscope_model.py +97 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/moonshot_model.py +10 -76
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/nemotron_model.py +4 -60
- camel_ai-0.2.47/camel/models/nvidia_model.py +91 -0
- camel_ai-0.2.47/camel/models/ollama_model.py +106 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/openai_compatible_model.py +51 -12
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/openai_model.py +3 -1
- camel_ai-0.2.47/camel/models/openrouter_model.py +91 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/ppio_model.py +10 -99
- camel_ai-0.2.47/camel/models/qwen_model.py +95 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/reka_model.py +1 -1
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/sglang_model.py +5 -3
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/siliconflow_model.py +10 -58
- camel_ai-0.2.47/camel/models/togetherai_model.py +95 -0
- camel_ai-0.2.47/camel/models/vllm_model.py +107 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/volcano_model.py +1 -15
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/yi_model.py +11 -98
- camel_ai-0.2.47/camel/models/zhipuai_model.py +94 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/__init__.py +2 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/vectordb_storages/__init__.py +2 -0
- camel_ai-0.2.47/camel/storages/vectordb_storages/oceanbase.py +458 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/__init__.py +4 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/browser_toolkit.py +4 -7
- camel_ai-0.2.47/camel/toolkits/jina_reranker_toolkit.py +231 -0
- camel_ai-0.2.47/camel/toolkits/pyautogui_toolkit.py +428 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/search_toolkit.py +167 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/video_analysis_toolkit.py +215 -80
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/video_download_toolkit.py +10 -3
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/types/enums.py +70 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/types/unified_model_type.py +10 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/utils/token_counting.py +7 -3
- {camel_ai-0.2.45 → camel_ai-0.2.47}/pyproject.toml +15 -4
- camel_ai-0.2.45/camel/models/aiml_model.py +0 -184
- camel_ai-0.2.45/camel/models/groq_model.py +0 -210
- camel_ai-0.2.45/camel/models/modelscope_model.py +0 -208
- camel_ai-0.2.45/camel/models/nvidia_model.py +0 -191
- camel_ai-0.2.45/camel/models/ollama_model.py +0 -299
- camel_ai-0.2.45/camel/models/openrouter_model.py +0 -210
- camel_ai-0.2.45/camel/models/qwen_model.py +0 -206
- camel_ai-0.2.45/camel/models/togetherai_model.py +0 -262
- camel_ai-0.2.45/camel/models/vllm_model.py +0 -314
- camel_ai-0.2.45/camel/models/zhipuai_model.py +0 -185
- {camel_ai-0.2.45 → camel_ai-0.2.47}/.gitignore +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/LICENSE +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/_types.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/_utils.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/chat_agent.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/critic_agent.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/deductive_reasoner_agent.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/embodied_agent.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/knowledge_graph_agent.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/multi_hop_generator_agent.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/programmed_agent_instruction.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/repo_agent.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/role_assignment_agent.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/search_agent.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/task_agent.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/tool_agents/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/tool_agents/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/agents/tool_agents/hugging_face_tool_agent.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/benchmarks/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/benchmarks/apibank.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/benchmarks/apibench.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/benchmarks/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/benchmarks/gaia.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/benchmarks/nexus.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/benchmarks/ragbench.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/bots/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/bots/discord/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/bots/discord/discord_app.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/bots/discord/discord_installation.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/bots/discord/discord_store.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/bots/slack/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/bots/slack/models.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/bots/slack/slack_app.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/bots/telegram_bot.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/aiml_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/anthropic_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/base_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/cohere_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/deepseek_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/gemini_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/groq_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/internlm_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/litellm_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/mistral_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/modelscope_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/moonshot_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/nvidia_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/ollama_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/openai_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/openrouter_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/ppio_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/reka_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/samba_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/sglang_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/siliconflow_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/togetherai_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/vllm_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/yi_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/configs/zhipuai_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/data_collector/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/data_collector/alpaca_collector.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/data_collector/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/data_collector/sharegpt_collector.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/cot_datagen.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/evol_instruct/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/evol_instruct/evol_instruct.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/evol_instruct/scorer.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/evol_instruct/templates.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/self_improving_cot.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/self_instruct/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/self_instruct/filter/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/self_instruct/filter/filter_function.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/self_instruct/filter/filter_registry.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/self_instruct/filter/instruction_filter.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/self_instruct/self_instruct.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/self_instruct/templates.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/source2synth/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/source2synth/data_processor.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/source2synth/models.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datagen/source2synth/user_data_processor_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datahubs/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datahubs/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datahubs/huggingface.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datahubs/models.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datasets/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datasets/base_generator.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datasets/self_instruct_generator.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/datasets/static_dataset.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/embeddings/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/embeddings/azure_embedding.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/embeddings/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/embeddings/jina_embedding.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/embeddings/mistral_embedding.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/embeddings/openai_compatible_embedding.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/embeddings/openai_embedding.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/embeddings/sentence_transformers_embeddings.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/embeddings/together_embedding.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/embeddings/vlm_embedding.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/environments/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/environments/models.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/environments/multi_step.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/environments/single_step.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/environments/tic_tac_toe.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/extractors/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/extractors/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/extractors/python_strategies.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/generators.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/human.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/interpreters/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/interpreters/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/interpreters/docker/Dockerfile +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/interpreters/docker_interpreter.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/interpreters/e2b_interpreter.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/interpreters/internal_python_interpreter.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/interpreters/interpreter_error.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/interpreters/ipython_interpreter.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/interpreters/subprocess_interpreter.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/loaders/apify_reader.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/loaders/base_io.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/loaders/chunkr_reader.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/loaders/crawl4ai_reader.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/loaders/firecrawl_reader.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/loaders/jina_url_reader.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/loaders/mineru_extractor.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/loaders/pandas_reader.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/loaders/unstructured_io.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/logger.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/memories/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/memories/agent_memories.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/memories/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/memories/blocks/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/memories/blocks/chat_history_block.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/memories/blocks/vectordb_block.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/memories/context_creators/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/memories/context_creators/score_based.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/memories/records.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/messages/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/messages/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/messages/conversion/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/messages/conversion/alpaca.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/messages/conversion/conversation_models.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/messages/conversion/sharegpt/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/messages/conversion/sharegpt/function_call_formatter.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/messages/conversion/sharegpt/hermes/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/messages/conversion/sharegpt/hermes/hermes_function_formatter.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/messages/func_message.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/_utils.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/azure_openai_model.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/base_audio_model.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/base_model.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/cohere_model.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/fish_audio_model.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/litellm_model.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/mistral_model.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/model_manager.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/openai_audio_models.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/reward/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/reward/base_reward_model.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/reward/evaluator.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/reward/nemotron_model.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/reward/skywork_model.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/samba_model.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/models/stub_model.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/personas/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/personas/persona.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/personas/persona_hub.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/ai_society.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/code.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/evaluation.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/generate_text_embedding_data.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/image_craft.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/misalignment.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/multi_condition_image_craft.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/object_recognition.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/persona_hub.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/prompt_templates.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/role_description_prompt_template.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/solution_extraction.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/task_prompt_template.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/translation.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/prompts/video_description_prompt.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/py.typed +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/responses/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/responses/agent_responses.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/retrievers/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/retrievers/auto_retriever.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/retrievers/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/retrievers/bm25_retriever.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/retrievers/cohere_rerank_retriever.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/retrievers/hybrid_retrival.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/retrievers/vector_retriever.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/runtime/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/runtime/api.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/runtime/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/runtime/configs.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/runtime/docker_runtime.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/runtime/llm_guard_runtime.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/runtime/remote_http_runtime.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/runtime/ubuntu_docker_runtime.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/runtime/utils/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/runtime/utils/function_risk_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/runtime/utils/ignore_risk_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/schemas/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/schemas/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/schemas/openai_converter.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/schemas/outlines_converter.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/societies/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/societies/babyagi_playing.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/societies/role_playing.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/societies/workforce/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/societies/workforce/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/societies/workforce/prompts.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/societies/workforce/role_playing_worker.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/societies/workforce/single_agent_worker.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/societies/workforce/task_channel.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/societies/workforce/utils.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/societies/workforce/worker.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/societies/workforce/workforce.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/graph_storages/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/graph_storages/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/graph_storages/graph_element.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/graph_storages/nebula_graph.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/graph_storages/neo4j_graph.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/key_value_storages/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/key_value_storages/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/key_value_storages/in_memory.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/key_value_storages/json.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/key_value_storages/mem0_cloud.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/key_value_storages/redis.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/object_storages/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/object_storages/amazon_s3.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/object_storages/azure_blob.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/object_storages/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/object_storages/google_cloud.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/vectordb_storages/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/vectordb_storages/milvus.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/vectordb_storages/qdrant.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/storages/vectordb_storages/tidb.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/tasks/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/tasks/task.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/tasks/task_prompt.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/terminators/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/terminators/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/terminators/response_terminator.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/terminators/token_limit_terminator.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/arxiv_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/ask_news_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/audio_analysis_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/code_execution.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/dalle_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/dappier_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/data_commons_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/excel_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/file_write_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/function_tool.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/github_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/google_calendar_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/google_maps_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/google_scholar_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/human_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/image_analysis_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/linkedin_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/math_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/mcp_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/memory_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/meshy_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/mineru_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/networkx_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/notion_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/biztoc/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/biztoc/ai-plugin.json +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/biztoc/openapi.yaml +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/coursera/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/coursera/openapi.yaml +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/create_qr_code/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/create_qr_code/openapi.yaml +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/klarna/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/klarna/openapi.yaml +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/nasa_apod/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/nasa_apod/openapi.yaml +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/outschool/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/outschool/ai-plugin.json +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/outschool/openapi.yaml +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/outschool/paths/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/outschool/paths/get_classes.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/outschool/paths/search_teachers.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/security_config.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/speak/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/speak/openapi.yaml +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/web_scraper/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/web_scraper/ai-plugin.json +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/web_scraper/openapi.yaml +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/web_scraper/paths/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_specs/web_scraper/paths/scraper.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/open_api_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/openai_agent_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/openbb_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/page_script.js +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/pubmed_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/reddit_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/retrieval_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/searxng_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/semantic_scholar_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/slack_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/stripe_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/sympy_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/terminal_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/thinking_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/twitter_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/weather_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/whatsapp_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/toolkits/zapier_toolkit.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/types/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/types/agents/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/types/agents/tool_calling_record.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/types/openai_types.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/utils/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/utils/async_func.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/utils/chunker/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/utils/chunker/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/utils/chunker/code_chunker.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/utils/chunker/uio_chunker.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/utils/commons.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/utils/constants.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/utils/deduplication.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/utils/mcp.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/utils/response_format.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/verifiers/__init__.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/verifiers/base.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/verifiers/math_verifier.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/verifiers/models.py +0 -0
- {camel_ai-0.2.45 → camel_ai-0.2.47}/camel/verifiers/python_verifier.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: camel-ai
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.47
|
|
4
4
|
Summary: Communicative Agents for AI Society Study
|
|
5
5
|
Project-URL: Homepage, https://www.camel-ai.org/
|
|
6
6
|
Project-URL: Repository, https://github.com/camel-ai/camel
|
|
@@ -84,10 +84,12 @@ Requires-Dist: playwright>=1.50.0; extra == 'all'
|
|
|
84
84
|
Requires-Dist: prance<24,>=23.6.21.0; extra == 'all'
|
|
85
85
|
Requires-Dist: praw<8,>=7.7.1; extra == 'all'
|
|
86
86
|
Requires-Dist: pre-commit<4,>=3; extra == 'all'
|
|
87
|
+
Requires-Dist: pyautogui<0.10,>=0.9.54; extra == 'all'
|
|
87
88
|
Requires-Dist: pydub<0.26,>=0.25.1; extra == 'all'
|
|
88
89
|
Requires-Dist: pygithub<3,>=2.6.0; extra == 'all'
|
|
89
90
|
Requires-Dist: pymilvus<3,>=2.4.0; extra == 'all'
|
|
90
91
|
Requires-Dist: pymupdf<2,>=1.22.5; extra == 'all'
|
|
92
|
+
Requires-Dist: pyobvector>=0.1.18; extra == 'all'
|
|
91
93
|
Requires-Dist: pyowm<4,>=3.3.0; extra == 'all'
|
|
92
94
|
Requires-Dist: pytelegrambotapi<5,>=4.18.0; extra == 'all'
|
|
93
95
|
Requires-Dist: pytest-asyncio<0.24,>=0.23.0; extra == 'all'
|
|
@@ -102,6 +104,7 @@ Requires-Dist: requests-oauthlib<2,>=1.3.1; extra == 'all'
|
|
|
102
104
|
Requires-Dist: rouge<2,>=1.0.1; extra == 'all'
|
|
103
105
|
Requires-Dist: scenedetect>=0.6.5.2; extra == 'all'
|
|
104
106
|
Requires-Dist: scholarly[tor]==1.7.11; extra == 'all'
|
|
107
|
+
Requires-Dist: scrapegraph-py<2,>=1.12.0; extra == 'all'
|
|
105
108
|
Requires-Dist: sentence-transformers<4,>=3.0.1; extra == 'all'
|
|
106
109
|
Requires-Dist: sentencepiece<0.3,>=0.2; extra == 'all'
|
|
107
110
|
Requires-Dist: slack-bolt<2,>=1.20.1; extra == 'all'
|
|
@@ -252,6 +255,7 @@ Requires-Dist: python-dotenv<2,>=1.0.0; extra == 'owl'
|
|
|
252
255
|
Requires-Dist: requests-oauthlib<2,>=1.3.1; extra == 'owl'
|
|
253
256
|
Requires-Dist: rouge<2,>=1.0.1; extra == 'owl'
|
|
254
257
|
Requires-Dist: scenedetect>=0.6.5.2; extra == 'owl'
|
|
258
|
+
Requires-Dist: scrapegraph-py<2,>=1.12.0; extra == 'owl'
|
|
255
259
|
Requires-Dist: sentencepiece<0.3,>=0.2; extra == 'owl'
|
|
256
260
|
Requires-Dist: soundfile<0.14,>=0.13; extra == 'owl'
|
|
257
261
|
Requires-Dist: tabulate>=0.9.0; extra == 'owl'
|
|
@@ -271,6 +275,7 @@ Requires-Dist: neo4j<6,>=5.18.0; extra == 'rag'
|
|
|
271
275
|
Requires-Dist: numpy~=1.26; extra == 'rag'
|
|
272
276
|
Requires-Dist: pandasai<3,>=2.3.0; extra == 'rag'
|
|
273
277
|
Requires-Dist: pymilvus<3,>=2.4.0; extra == 'rag'
|
|
278
|
+
Requires-Dist: pyobvector>=0.1.18; extra == 'rag'
|
|
274
279
|
Requires-Dist: pytidb-experimental==0.0.1.dev4; extra == 'rag'
|
|
275
280
|
Requires-Dist: qdrant-client<2,>=1.9.0; extra == 'rag'
|
|
276
281
|
Requires-Dist: rank-bm25<0.3,>=0.2.2; extra == 'rag'
|
|
@@ -288,6 +293,7 @@ Requires-Dist: mem0ai>=0.1.73; extra == 'storage'
|
|
|
288
293
|
Requires-Dist: nebula3-python==3.8.2; extra == 'storage'
|
|
289
294
|
Requires-Dist: neo4j<6,>=5.18.0; extra == 'storage'
|
|
290
295
|
Requires-Dist: pymilvus<3,>=2.4.0; extra == 'storage'
|
|
296
|
+
Requires-Dist: pyobvector>=0.1.18; extra == 'storage'
|
|
291
297
|
Requires-Dist: pytidb-experimental==0.0.1.dev4; extra == 'storage'
|
|
292
298
|
Requires-Dist: qdrant-client<2,>=1.9.0; extra == 'storage'
|
|
293
299
|
Requires-Dist: redis<6,>=5.0.6; extra == 'storage'
|
|
@@ -313,6 +319,7 @@ Requires-Dist: newspaper3k<0.3,>=0.2.8; extra == 'web-tools'
|
|
|
313
319
|
Requires-Dist: playwright>=1.50.0; extra == 'web-tools'
|
|
314
320
|
Requires-Dist: pyowm<4,>=3.3.0; extra == 'web-tools'
|
|
315
321
|
Requires-Dist: requests-oauthlib<2,>=1.3.1; extra == 'web-tools'
|
|
322
|
+
Requires-Dist: scrapegraph-py<2,>=1.12.0; extra == 'web-tools'
|
|
316
323
|
Requires-Dist: sympy<2,>=1.13.3; extra == 'web-tools'
|
|
317
324
|
Requires-Dist: tavily-python<0.6,>=0.5.0; extra == 'web-tools'
|
|
318
325
|
Requires-Dist: wikipedia<2,>=1; extra == 'web-tools'
|
|
@@ -337,6 +344,9 @@ Description-Content-Type: text/markdown
|
|
|
337
344
|
[![Hugging Face][huggingface-image]][huggingface-url]
|
|
338
345
|
[![Star][star-image]][star-url]
|
|
339
346
|
[![Package License][package-license-image]][package-license-url]
|
|
347
|
+
[![PyPI Download][package-download-image]][package-download-url]
|
|
348
|
+
|
|
349
|
+
<a href="https://trendshift.io/repositories/649" target="_blank"><img src="https://trendshift.io/api/badge/repositories/649" alt="camel-ai/camel | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
|
340
350
|
|
|
341
351
|
</div>
|
|
342
352
|
|
|
@@ -781,6 +791,7 @@ The source code is licensed under Apache 2.0.
|
|
|
781
791
|
[star-url]: https://github.com/camel-ai/camel/stargazers
|
|
782
792
|
[package-license-image]: https://img.shields.io/badge/License-Apache_2.0-blue.svg
|
|
783
793
|
[package-license-url]: https://github.com/camel-ai/camel/blob/master/licenses/LICENSE
|
|
794
|
+
[package-download-image]: https://img.shields.io/pypi/dm/camel-ai
|
|
784
795
|
|
|
785
796
|
[colab-url]: https://colab.research.google.com/drive/1AzP33O8rnMW__7ocWJhVBXjKziJXPtim?usp=sharing
|
|
786
797
|
[colab-image]: https://colab.research.google.com/assets/colab-badge.svg
|
|
@@ -796,3 +807,4 @@ The source code is licensed under Apache 2.0.
|
|
|
796
807
|
[reddit-url]: https://www.reddit.com/r/CamelAI/
|
|
797
808
|
[reddit-image]: https://img.shields.io/reddit/subreddit-subscribers/CamelAI?style=plastic&logo=reddit&label=r%2FCAMEL&labelColor=white
|
|
798
809
|
[ambassador-url]: https://www.camel-ai.org/community
|
|
810
|
+
[package-download-url]: https://pypi.org/project/camel-ai
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
[![Hugging Face][huggingface-image]][huggingface-url]
|
|
17
17
|
[![Star][star-image]][star-url]
|
|
18
18
|
[![Package License][package-license-image]][package-license-url]
|
|
19
|
+
[![PyPI Download][package-download-image]][package-download-url]
|
|
20
|
+
|
|
21
|
+
<a href="https://trendshift.io/repositories/649" target="_blank"><img src="https://trendshift.io/api/badge/repositories/649" alt="camel-ai/camel | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
|
19
22
|
|
|
20
23
|
</div>
|
|
21
24
|
|
|
@@ -460,6 +463,7 @@ The source code is licensed under Apache 2.0.
|
|
|
460
463
|
[star-url]: https://github.com/camel-ai/camel/stargazers
|
|
461
464
|
[package-license-image]: https://img.shields.io/badge/License-Apache_2.0-blue.svg
|
|
462
465
|
[package-license-url]: https://github.com/camel-ai/camel/blob/master/licenses/LICENSE
|
|
466
|
+
[package-download-image]: https://img.shields.io/pypi/dm/camel-ai
|
|
463
467
|
|
|
464
468
|
[colab-url]: https://colab.research.google.com/drive/1AzP33O8rnMW__7ocWJhVBXjKziJXPtim?usp=sharing
|
|
465
469
|
[colab-image]: https://colab.research.google.com/assets/colab-badge.svg
|
|
@@ -475,3 +479,4 @@ The source code is licensed under Apache 2.0.
|
|
|
475
479
|
[reddit-url]: https://www.reddit.com/r/CamelAI/
|
|
476
480
|
[reddit-image]: https://img.shields.io/reddit/subreddit-subscribers/CamelAI?style=plastic&logo=reddit&label=r%2FCAMEL&labelColor=white
|
|
477
481
|
[ambassador-url]: https://www.camel-ai.org/community
|
|
482
|
+
[package-download-url]: https://pypi.org/project/camel-ai
|
|
@@ -14,12 +14,14 @@
|
|
|
14
14
|
from .aiml_config import AIML_API_PARAMS, AIMLConfig
|
|
15
15
|
from .anthropic_config import ANTHROPIC_API_PARAMS, AnthropicConfig
|
|
16
16
|
from .base_config import BaseConfig
|
|
17
|
+
from .bedrock_config import BEDROCK_API_PARAMS, BedrockConfig
|
|
17
18
|
from .cohere_config import COHERE_API_PARAMS, CohereConfig
|
|
18
19
|
from .deepseek_config import DEEPSEEK_API_PARAMS, DeepSeekConfig
|
|
19
20
|
from .gemini_config import Gemini_API_PARAMS, GeminiConfig
|
|
20
21
|
from .groq_config import GROQ_API_PARAMS, GroqConfig
|
|
21
22
|
from .internlm_config import INTERNLM_API_PARAMS, InternLMConfig
|
|
22
23
|
from .litellm_config import LITELLM_API_PARAMS, LiteLLMConfig
|
|
24
|
+
from .lmstudio_config import LMSTUDIO_API_PARAMS, LMStudioConfig
|
|
23
25
|
from .mistral_config import MISTRAL_API_PARAMS, MistralConfig
|
|
24
26
|
from .modelscope_config import MODELSCOPE_API_PARAMS, ModelScopeConfig
|
|
25
27
|
from .moonshot_config import MOONSHOT_API_PARAMS, MoonshotConfig
|
|
@@ -81,6 +83,8 @@ __all__ = [
|
|
|
81
83
|
'YI_API_PARAMS',
|
|
82
84
|
'QwenConfig',
|
|
83
85
|
'QWEN_API_PARAMS',
|
|
86
|
+
'BedrockConfig',
|
|
87
|
+
'BEDROCK_API_PARAMS',
|
|
84
88
|
'DeepSeekConfig',
|
|
85
89
|
'DEEPSEEK_API_PARAMS',
|
|
86
90
|
'PPIOConfig',
|
|
@@ -97,4 +101,6 @@ __all__ = [
|
|
|
97
101
|
'AIML_API_PARAMS',
|
|
98
102
|
'OpenRouterConfig',
|
|
99
103
|
'OPENROUTER_API_PARAMS',
|
|
104
|
+
'LMSTUDIO_API_PARAMS',
|
|
105
|
+
'LMStudioConfig',
|
|
100
106
|
]
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
|
|
14
|
+
from typing import Dict, Optional, Union
|
|
15
|
+
|
|
16
|
+
from camel.configs.base_config import BaseConfig
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class BedrockConfig(BaseConfig):
|
|
20
|
+
r"""Defines the parameters for generating chat completions using OpenAI
|
|
21
|
+
compatibility.
|
|
22
|
+
|
|
23
|
+
Args:
|
|
24
|
+
max_tokens (int, optional): The maximum number of tokens to generate
|
|
25
|
+
in the chat completion. The total length of input tokens and
|
|
26
|
+
generated tokens is limited by the model's context length.
|
|
27
|
+
(default: :obj:`None`)
|
|
28
|
+
temperature (float, optional): Sampling temperature to use, between
|
|
29
|
+
:obj:`0` and :obj:`2`. Higher values make the output more random,
|
|
30
|
+
while lower values make it more focused and deterministic.
|
|
31
|
+
(default: :obj:`None`)
|
|
32
|
+
top_p (float, optional): An alternative to sampling with temperature,
|
|
33
|
+
called nucleus sampling, where the model considers the results of
|
|
34
|
+
the tokens with top_p probability mass. So :obj:`0.1` means only
|
|
35
|
+
the tokens comprising the top 10% probability mass are considered.
|
|
36
|
+
(default: :obj:`None`)
|
|
37
|
+
top_k (int, optional): The number of top tokens to consider.
|
|
38
|
+
stream (bool, optional): If True, partial message deltas will be sent
|
|
39
|
+
as data-only server-sent events as they become available.
|
|
40
|
+
(default: :obj:`None`)
|
|
41
|
+
tools (list[FunctionTool], optional): A list of tools the model may
|
|
42
|
+
call. Currently, only functions are supported as a tool. Use this
|
|
43
|
+
to provide a list of functions the model may generate JSON inputs
|
|
44
|
+
for. A max of 128 functions are supported.
|
|
45
|
+
tool_choice (Union[dict[str, str], str], optional): Controls which (if
|
|
46
|
+
any) tool is called by the model. :obj:`"none"` means the model
|
|
47
|
+
will not call any tool and instead generates a message.
|
|
48
|
+
:obj:`"auto"` means the model can pick between generating a
|
|
49
|
+
message or calling one or more tools. :obj:`"required"` means the
|
|
50
|
+
model must call one or more tools. Specifying a particular tool
|
|
51
|
+
via {"type": "function", "function": {"name": "my_function"}}
|
|
52
|
+
forces the model to call that tool. :obj:`"none"` is the default
|
|
53
|
+
when no tools are present. :obj:`"auto"` is the default if tools
|
|
54
|
+
are present.
|
|
55
|
+
reasoning_effort(str, optional): A parameter specifying the level of
|
|
56
|
+
reasoning used by certain model types. Valid values are :obj:
|
|
57
|
+
`"low"`, :obj:`"medium"`, or :obj:`"high"`. If set, it is only
|
|
58
|
+
applied to the model types that support it (e.g., :obj:`o1`,
|
|
59
|
+
:obj:`o1mini`, :obj:`o1preview`, :obj:`o3mini`). If not provided
|
|
60
|
+
or if the model type does not support it, this parameter is
|
|
61
|
+
ignored. (default: :obj:`None`)
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
max_tokens: Optional[int] = None
|
|
65
|
+
temperature: Optional[float] = None
|
|
66
|
+
top_p: Optional[float] = None
|
|
67
|
+
top_k: Optional[int] = None
|
|
68
|
+
stream: Optional[bool] = None
|
|
69
|
+
tool_choice: Optional[Union[Dict[str, str], str]] = None
|
|
70
|
+
reasoning_effort: Optional[str] = None
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
BEDROCK_API_PARAMS = {param for param in BedrockConfig.model_fields.keys()}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
|
|
16
|
+
from typing import Optional, Sequence, Union
|
|
17
|
+
|
|
18
|
+
from camel.configs.base_config import BaseConfig
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class LMStudioConfig(BaseConfig):
|
|
22
|
+
r"""Defines the parameters for generating chat completions using OpenAI
|
|
23
|
+
compatibility.
|
|
24
|
+
|
|
25
|
+
Args:
|
|
26
|
+
temperature (float, optional): Sampling temperature to use, between
|
|
27
|
+
:obj:`0` and :obj:`2`. Higher values make the output more random,
|
|
28
|
+
while lower values make it more focused and deterministic.
|
|
29
|
+
(default: :obj:`None`)
|
|
30
|
+
top_p (float, optional): An alternative to sampling with temperature,
|
|
31
|
+
called nucleus sampling, where the model considers the results of
|
|
32
|
+
the tokens with top_p probability mass. So :obj:`0.1` means only
|
|
33
|
+
the tokens comprising the top 10% probability mass are considered.
|
|
34
|
+
(default: :obj:`None`)
|
|
35
|
+
response_format (object, optional): An object specifying the format
|
|
36
|
+
that the model must output. Compatible with GPT-4 Turbo and all
|
|
37
|
+
GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106. Setting to
|
|
38
|
+
{"type": "json_object"} enables JSON mode, which guarantees the
|
|
39
|
+
message the model generates is valid JSON. Important: when using
|
|
40
|
+
JSON mode, you must also instruct the model to produce JSON
|
|
41
|
+
yourself via a system or user message. Without this, the model
|
|
42
|
+
may generate an unending stream of whitespace until the generation
|
|
43
|
+
reaches the token limit, resulting in a long-running and seemingly
|
|
44
|
+
"stuck" request. Also note that the message content may be
|
|
45
|
+
partially cut off if finish_reason="length", which indicates the
|
|
46
|
+
generation exceeded max_tokens or the conversation exceeded the
|
|
47
|
+
max context length.
|
|
48
|
+
stream (bool, optional): If True, partial message deltas will be sent
|
|
49
|
+
as data-only server-sent events as they become available.
|
|
50
|
+
(default: :obj:`None`)
|
|
51
|
+
stop (str or list, optional): Up to :obj:`4` sequences where the API
|
|
52
|
+
will stop generating further tokens. (default: :obj:`None`)
|
|
53
|
+
max_tokens (int, optional): The maximum number of tokens to generate
|
|
54
|
+
in the chat completion. The total length of input tokens and
|
|
55
|
+
generated tokens is limited by the model's context length.
|
|
56
|
+
(default: :obj:`None`)
|
|
57
|
+
presence_penalty (float, optional): Number between :obj:`-2.0` and
|
|
58
|
+
:obj:`2.0`. Positive values penalize new tokens based on whether
|
|
59
|
+
they appear in the text so far, increasing the model's likelihood
|
|
60
|
+
to talk about new topics. See more information about frequency and
|
|
61
|
+
presence penalties. (default: :obj:`None`)
|
|
62
|
+
frequency_penalty (float, optional): Number between :obj:`-2.0` and
|
|
63
|
+
:obj:`2.0`. Positive values penalize new tokens based on their
|
|
64
|
+
existing frequency in the text so far, decreasing the model's
|
|
65
|
+
likelihood to repeat the same line verbatim. See more information
|
|
66
|
+
about frequency and presence penalties. (default: :obj:`None`)
|
|
67
|
+
tools (list[FunctionTool], optional): A list of tools the model may
|
|
68
|
+
call. Currently, only functions are supported as a tool. Use this
|
|
69
|
+
to provide a list of functions the model may generate JSON inputs
|
|
70
|
+
for. A max of 128 functions are supported.
|
|
71
|
+
tool_choice (Union[dict[str, str], str], optional): Controls which (if
|
|
72
|
+
any) tool is called by the model. :obj:`"none"` means the model
|
|
73
|
+
will not call any tool and instead generates a message.
|
|
74
|
+
:obj:`"auto"` means the model can pick between generating a
|
|
75
|
+
message or calling one or more tools. :obj:`"required"` means the
|
|
76
|
+
model must call one or more tools. Specifying a particular tool
|
|
77
|
+
via {"type": "function", "function": {"name": "my_function"}}
|
|
78
|
+
forces the model to call that tool. :obj:`"none"` is the default
|
|
79
|
+
when no tools are present. :obj:`"auto"` is the default if tools
|
|
80
|
+
are present.
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
temperature: Optional[float] = None
|
|
84
|
+
top_p: Optional[float] = None
|
|
85
|
+
stream: Optional[bool] = None
|
|
86
|
+
stop: Optional[Union[str, Sequence[str]]] = None
|
|
87
|
+
max_tokens: Optional[int] = None
|
|
88
|
+
presence_penalty: Optional[float] = None
|
|
89
|
+
response_format: Optional[dict] = None
|
|
90
|
+
frequency_penalty: Optional[float] = None
|
|
91
|
+
tool_choice: Optional[Union[dict[str, str], str]] = None
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
LMSTUDIO_API_PARAMS = {param for param in LMStudioConfig.model_fields.keys()}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
|
|
14
14
|
from __future__ import annotations
|
|
15
15
|
|
|
16
|
-
from typing import Dict, List, Optional, Union
|
|
16
|
+
from typing import Any, Dict, List, Optional, Union
|
|
17
17
|
|
|
18
18
|
from camel.configs.base_config import BaseConfig
|
|
19
19
|
|
|
@@ -61,7 +61,7 @@ class QwenConfig(BaseConfig):
|
|
|
61
61
|
call. It can contain one or more tool objects. During a function
|
|
62
62
|
call process, the model will select one tool from the array.
|
|
63
63
|
(default: :obj:`None`)
|
|
64
|
-
extra_body (Optional[Dict[str,
|
|
64
|
+
extra_body (Optional[Dict[str, Any]], optional): Additional parameters
|
|
65
65
|
to be sent to the Qwen API. If you want to enable internet search,
|
|
66
66
|
you can set this parameter to `{"enable_search": True}`.
|
|
67
67
|
(default: :obj:`None`)
|
|
@@ -78,7 +78,7 @@ class QwenConfig(BaseConfig):
|
|
|
78
78
|
max_tokens: Optional[int] = None
|
|
79
79
|
seed: Optional[int] = None
|
|
80
80
|
stop: Optional[Union[str, List]] = None
|
|
81
|
-
extra_body: Optional[Dict[str,
|
|
81
|
+
extra_body: Optional[Dict[str, Any]] = None
|
|
82
82
|
|
|
83
83
|
def __init__(self, include_usage: bool = True, **kwargs):
|
|
84
84
|
super().__init__(**kwargs)
|
|
@@ -16,7 +16,7 @@ import asyncio
|
|
|
16
16
|
from datetime import datetime
|
|
17
17
|
from typing import List
|
|
18
18
|
|
|
19
|
-
from pydantic import ValidationError
|
|
19
|
+
from pydantic import BaseModel, Field, ValidationError
|
|
20
20
|
|
|
21
21
|
from camel.agents import ChatAgent
|
|
22
22
|
from camel.logger import get_logger
|
|
@@ -176,14 +176,30 @@ class FewShotGenerator(BaseGenerator):
|
|
|
176
176
|
]
|
|
177
177
|
prompt = self._construct_prompt(examples)
|
|
178
178
|
|
|
179
|
+
# Create a simplified version of DataPoint that omits metadata
|
|
180
|
+
# because agent.step's response_format parameter doesn't
|
|
181
|
+
# support type Dict[str, Any]
|
|
182
|
+
class DataPointSimplified(BaseModel):
|
|
183
|
+
question: str = Field(
|
|
184
|
+
description="The primary question or issue to "
|
|
185
|
+
"be addressed."
|
|
186
|
+
)
|
|
187
|
+
final_answer: str = Field(description="The final answer.")
|
|
188
|
+
rationale: str = Field(
|
|
189
|
+
description="Logical reasoning or explanation "
|
|
190
|
+
"behind the answer."
|
|
191
|
+
)
|
|
192
|
+
|
|
179
193
|
try:
|
|
180
194
|
agent_output = (
|
|
181
|
-
self.agent.step(
|
|
195
|
+
self.agent.step(
|
|
196
|
+
prompt, response_format=DataPointSimplified
|
|
197
|
+
)
|
|
182
198
|
.msgs[0]
|
|
183
199
|
.parsed
|
|
184
200
|
)
|
|
185
201
|
|
|
186
|
-
assert isinstance(agent_output,
|
|
202
|
+
assert isinstance(agent_output, DataPointSimplified)
|
|
187
203
|
|
|
188
204
|
self.agent.reset()
|
|
189
205
|
|
|
@@ -24,7 +24,7 @@ class DataPoint(BaseModel):
|
|
|
24
24
|
final_answer (str): The final answer.
|
|
25
25
|
rationale (Optional[str]): Logical reasoning or explanation behind the
|
|
26
26
|
answer. (default: :obj:`None`)
|
|
27
|
-
metadata Optional[Dict[str, Any]]: Additional metadata about the data
|
|
27
|
+
metadata (Optional[Dict[str, Any]]): Additional metadata about the data
|
|
28
28
|
point. (default: :obj:`None`)
|
|
29
29
|
"""
|
|
30
30
|
|
|
@@ -20,6 +20,7 @@ from .firecrawl_reader import Firecrawl
|
|
|
20
20
|
from .jina_url_reader import JinaURLReader
|
|
21
21
|
from .mineru_extractor import MinerU
|
|
22
22
|
from .pandas_reader import PandasReader
|
|
23
|
+
from .scrapegraph_reader import ScrapeGraphAI
|
|
23
24
|
from .unstructured_io import UnstructuredIO
|
|
24
25
|
|
|
25
26
|
__all__ = [
|
|
@@ -34,4 +35,5 @@ __all__ = [
|
|
|
34
35
|
'PandasReader',
|
|
35
36
|
'MinerU',
|
|
36
37
|
'Crawl4AI',
|
|
38
|
+
'ScrapeGraphAI',
|
|
37
39
|
]
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
|
|
14
|
+
|
|
15
|
+
import os
|
|
16
|
+
from typing import Any, Dict, Optional
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ScrapeGraphAI:
|
|
20
|
+
r"""ScrapeGraphAI allows you to perform AI-powered web scraping and
|
|
21
|
+
searching.
|
|
22
|
+
|
|
23
|
+
Args:
|
|
24
|
+
api_key (Optional[str]): API key for authenticating with the
|
|
25
|
+
ScrapeGraphAI API.
|
|
26
|
+
|
|
27
|
+
References:
|
|
28
|
+
https://scrapegraph.ai/
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
def __init__(
|
|
32
|
+
self,
|
|
33
|
+
api_key: Optional[str] = None,
|
|
34
|
+
) -> None:
|
|
35
|
+
from scrapegraph_py import Client
|
|
36
|
+
from scrapegraph_py.logger import sgai_logger
|
|
37
|
+
|
|
38
|
+
self._api_key = api_key or os.environ.get("SCRAPEGRAPH_API_KEY")
|
|
39
|
+
sgai_logger.set_logging(level="INFO")
|
|
40
|
+
self.client = Client(api_key=self._api_key)
|
|
41
|
+
|
|
42
|
+
def search(
|
|
43
|
+
self,
|
|
44
|
+
user_prompt: str,
|
|
45
|
+
) -> Dict[str, Any]:
|
|
46
|
+
r"""Perform an AI-powered web search using ScrapeGraphAI.
|
|
47
|
+
|
|
48
|
+
Args:
|
|
49
|
+
user_prompt (str): The search query or instructions.
|
|
50
|
+
|
|
51
|
+
Returns:
|
|
52
|
+
Dict[str, Any]: The search results including answer and reference
|
|
53
|
+
URLs.
|
|
54
|
+
|
|
55
|
+
Raises:
|
|
56
|
+
RuntimeError: If the search process fails.
|
|
57
|
+
"""
|
|
58
|
+
try:
|
|
59
|
+
response = self.client.searchscraper(user_prompt=user_prompt)
|
|
60
|
+
return response
|
|
61
|
+
except Exception as e:
|
|
62
|
+
raise RuntimeError(f"Failed to perform search: {e}")
|
|
63
|
+
|
|
64
|
+
def scrape(
|
|
65
|
+
self,
|
|
66
|
+
website_url: str,
|
|
67
|
+
user_prompt: str,
|
|
68
|
+
website_html: Optional[str] = None,
|
|
69
|
+
) -> Dict[str, Any]:
|
|
70
|
+
r"""Perform AI-powered web scraping using ScrapeGraphAI.
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
website_url (str): The URL to scrape.
|
|
74
|
+
user_prompt (str): Instructions for what data to extract.
|
|
75
|
+
website_html (Optional[str]): Optional HTML content to use instead
|
|
76
|
+
of fetching from the URL.
|
|
77
|
+
|
|
78
|
+
Returns:
|
|
79
|
+
Dict[str, Any]: The scraped data including request ID and result.
|
|
80
|
+
|
|
81
|
+
Raises:
|
|
82
|
+
RuntimeError: If the scrape process fails.
|
|
83
|
+
"""
|
|
84
|
+
try:
|
|
85
|
+
response = self.client.smartscraper(
|
|
86
|
+
website_url=website_url,
|
|
87
|
+
user_prompt=user_prompt,
|
|
88
|
+
website_html=website_html,
|
|
89
|
+
)
|
|
90
|
+
return response
|
|
91
|
+
except Exception as e:
|
|
92
|
+
raise RuntimeError(f"Failed to perform scrape: {e}")
|
|
93
|
+
|
|
94
|
+
def close(self) -> None:
|
|
95
|
+
r"""Close the ScrapeGraphAI client connection."""
|
|
96
|
+
self.client.close()
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
|
|
14
14
|
from .aiml_model import AIMLModel
|
|
15
15
|
from .anthropic_model import AnthropicModel
|
|
16
|
+
from .aws_bedrock_model import AWSBedrockModel
|
|
16
17
|
from .azure_openai_model import AzureOpenAIModel
|
|
17
18
|
from .base_audio_model import BaseAudioModel
|
|
18
19
|
from .base_model import BaseModelBackend
|
|
@@ -23,6 +24,7 @@ from .gemini_model import GeminiModel
|
|
|
23
24
|
from .groq_model import GroqModel
|
|
24
25
|
from .internlm_model import InternLMModel
|
|
25
26
|
from .litellm_model import LiteLLMModel
|
|
27
|
+
from .lmstudio_model import LMStudioModel
|
|
26
28
|
from .mistral_model import MistralModel
|
|
27
29
|
from .model_factory import ModelFactory
|
|
28
30
|
from .model_manager import ModelManager, ModelProcessingError
|
|
@@ -76,6 +78,7 @@ __all__ = [
|
|
|
76
78
|
'PPIOModel',
|
|
77
79
|
'YiModel',
|
|
78
80
|
'QwenModel',
|
|
81
|
+
'AWSBedrockModel',
|
|
79
82
|
'ModelProcessingError',
|
|
80
83
|
'DeepSeekModel',
|
|
81
84
|
'FishAudioModel',
|
|
@@ -86,4 +89,5 @@ __all__ = [
|
|
|
86
89
|
'BaseAudioModel',
|
|
87
90
|
'SiliconFlowModel',
|
|
88
91
|
'VolcanoModel',
|
|
92
|
+
'LMStudioModel',
|
|
89
93
|
]
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
|
|
14
|
+
import os
|
|
15
|
+
from typing import Any, Dict, Optional, Union
|
|
16
|
+
|
|
17
|
+
from camel.configs import AIML_API_PARAMS, AIMLConfig
|
|
18
|
+
from camel.models.openai_compatible_model import OpenAICompatibleModel
|
|
19
|
+
from camel.types import ModelType
|
|
20
|
+
from camel.utils import (
|
|
21
|
+
BaseTokenCounter,
|
|
22
|
+
api_keys_required,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class AIMLModel(OpenAICompatibleModel):
|
|
27
|
+
r"""AIML API in a unified OpenAICompatibleModel interface.
|
|
28
|
+
|
|
29
|
+
Args:
|
|
30
|
+
model_type (Union[ModelType, str]): Model for which a backend is
|
|
31
|
+
created.
|
|
32
|
+
model_config_dict (Optional[Dict[str, Any]], optional): A dictionary
|
|
33
|
+
that will be fed into OpenAI client. If :obj:`None`,
|
|
34
|
+
:obj:`AIMLConfig().as_dict()` will be used.
|
|
35
|
+
(default: :obj:`None`)
|
|
36
|
+
api_key (Optional[str], optional): The API key for authenticating with
|
|
37
|
+
the AIML service. (default: :obj:`None`)
|
|
38
|
+
url (Optional[str], optional): The URL to the AIML service. If
|
|
39
|
+
not provided, :obj:`https://api.aimlapi.com/v1` will be used.
|
|
40
|
+
(default: :obj:`None`)
|
|
41
|
+
token_counter (Optional[BaseTokenCounter], optional): Token counter to
|
|
42
|
+
use for the model. If not provided, :obj:`OpenAITokenCounter(
|
|
43
|
+
ModelType.GPT_4O_MINI)` will be used.
|
|
44
|
+
(default: :obj:`None`)
|
|
45
|
+
timeout (Optional[float], optional): The timeout value in seconds for
|
|
46
|
+
API calls. If not provided, will fall back to the MODEL_TIMEOUT
|
|
47
|
+
environment variable or default to 180 seconds.
|
|
48
|
+
(default: :obj:`None`)
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
@api_keys_required([("api_key", "AIML_API_KEY")])
|
|
52
|
+
def __init__(
|
|
53
|
+
self,
|
|
54
|
+
model_type: Union[ModelType, str],
|
|
55
|
+
model_config_dict: Optional[Dict[str, Any]] = None,
|
|
56
|
+
api_key: Optional[str] = None,
|
|
57
|
+
url: Optional[str] = None,
|
|
58
|
+
token_counter: Optional[BaseTokenCounter] = None,
|
|
59
|
+
timeout: Optional[float] = None,
|
|
60
|
+
) -> None:
|
|
61
|
+
if model_config_dict is None:
|
|
62
|
+
model_config_dict = AIMLConfig().as_dict()
|
|
63
|
+
api_key = api_key or os.environ.get("AIML_API_KEY")
|
|
64
|
+
url = url or os.environ.get(
|
|
65
|
+
"AIML_API_BASE_URL",
|
|
66
|
+
"https://api.aimlapi.com/v1",
|
|
67
|
+
)
|
|
68
|
+
timeout = timeout or float(os.environ.get("MODEL_TIMEOUT", 180))
|
|
69
|
+
super().__init__(
|
|
70
|
+
model_type=model_type,
|
|
71
|
+
model_config_dict=model_config_dict,
|
|
72
|
+
api_key=api_key,
|
|
73
|
+
url=url,
|
|
74
|
+
token_counter=token_counter,
|
|
75
|
+
timeout=timeout,
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
def check_model_config(self):
|
|
79
|
+
r"""Check whether the model configuration contains any
|
|
80
|
+
unexpected arguments to AIML API.
|
|
81
|
+
|
|
82
|
+
Raises:
|
|
83
|
+
ValueError: If the model configuration dictionary contains any
|
|
84
|
+
unexpected arguments to AIML API.
|
|
85
|
+
"""
|
|
86
|
+
for param in self.model_config_dict:
|
|
87
|
+
if param not in AIML_API_PARAMS:
|
|
88
|
+
raise ValueError(
|
|
89
|
+
f"Unexpected argument `{param}` is "
|
|
90
|
+
"input into AIML model backend."
|
|
91
|
+
)
|