camel-ai 0.1.6.5__tar.gz → 0.1.6.6__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.1.6.5 → camel_ai-0.1.6.6}/PKG-INFO +2 -2
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/README.md +1 -1
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/__init__.py +1 -1
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/openai_compatibility_model.py +16 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/retrievers/auto_retriever.py +18 -6
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/retrievers/vector_retriever.py +24 -10
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/types/enums.py +4 -8
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/pyproject.toml +1 -1
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/agents/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/agents/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/agents/chat_agent.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/agents/critic_agent.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/agents/deductive_reasoner_agent.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/agents/embodied_agent.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/agents/knowledge_graph_agent.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/agents/role_assignment_agent.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/agents/search_agent.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/agents/task_agent.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/agents/tool_agents/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/agents/tool_agents/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/agents/tool_agents/hugging_face_tool_agent.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/configs/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/configs/anthropic_config.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/configs/base_config.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/configs/gemini_config.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/configs/groq_config.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/configs/litellm_config.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/configs/mistral_config.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/configs/ollama_config.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/configs/openai_config.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/configs/vllm_config.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/configs/zhipuai_config.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/embeddings/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/embeddings/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/embeddings/mistral_embedding.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/embeddings/openai_embedding.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/embeddings/sentence_transformers_embeddings.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/embeddings/vlm_embedding.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/generators.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/human.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/interpreters/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/interpreters/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/interpreters/docker_interpreter.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/interpreters/internal_python_interpreter.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/interpreters/interpreter_error.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/interpreters/ipython_interpreter.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/interpreters/subprocess_interpreter.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/loaders/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/loaders/base_io.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/loaders/firecrawl_reader.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/loaders/jina_url_reader.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/loaders/unstructured_io.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/memories/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/memories/agent_memories.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/memories/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/memories/blocks/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/memories/blocks/chat_history_block.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/memories/blocks/vectordb_block.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/memories/context_creators/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/memories/context_creators/score_based.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/memories/records.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/messages/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/messages/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/messages/func_message.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/anthropic_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/azure_openai_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/base_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/gemini_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/groq_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/litellm_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/mistral_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/model_factory.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/nemotron_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/ollama_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/open_source_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/openai_audio_models.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/openai_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/stub_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/vllm_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/models/zhipuai_model.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/ai_society.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/code.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/evaluation.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/generate_text_embedding_data.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/image_craft.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/misalignment.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/multi_condition_image_craft.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/object_recognition.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/prompt_templates.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/role_description_prompt_template.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/solution_extraction.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/task_prompt_template.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/translation.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/prompts/video_description_prompt.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/responses/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/responses/agent_responses.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/retrievers/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/retrievers/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/retrievers/bm25_retriever.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/retrievers/cohere_rerank_retriever.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/societies/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/societies/babyagi_playing.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/societies/role_playing.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/graph_storages/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/graph_storages/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/graph_storages/graph_element.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/graph_storages/neo4j_graph.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/key_value_storages/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/key_value_storages/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/key_value_storages/in_memory.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/key_value_storages/json.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/key_value_storages/redis.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/object_storages/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/object_storages/amazon_s3.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/object_storages/azure_blob.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/object_storages/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/object_storages/google_cloud.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/vectordb_storages/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/vectordb_storages/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/vectordb_storages/milvus.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/storages/vectordb_storages/qdrant.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/tasks/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/tasks/task.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/tasks/task_prompt.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/terminators/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/terminators/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/terminators/response_terminator.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/terminators/token_limit_terminator.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/code_execution.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/dalle_toolkit.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/github_toolkit.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/google_maps_toolkit.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/math_toolkit.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/biztoc/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/biztoc/ai-plugin.json +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/biztoc/openapi.yaml +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/coursera/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/coursera/openapi.yaml +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/create_qr_code/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/create_qr_code/openapi.yaml +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/klarna/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/klarna/openapi.yaml +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/nasa_apod/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/nasa_apod/openapi.yaml +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/outschool/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/outschool/ai-plugin.json +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/outschool/openapi.yaml +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/outschool/paths/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/outschool/paths/get_classes.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/outschool/paths/search_teachers.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/security_config.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/speak/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/speak/openapi.yaml +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/web_scraper/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/web_scraper/ai-plugin.json +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/web_scraper/openapi.yaml +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/web_scraper/paths/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/web_scraper/paths/scraper.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_toolkit.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/openai_function.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/retrieval_toolkit.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/search_toolkit.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/slack_toolkit.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/twitter_toolkit.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/weather_toolkit.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/types/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/types/openai_types.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/utils/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/utils/async_func.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/utils/commons.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/utils/constants.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/utils/token_counting.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/workforce/__init__.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/workforce/base.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/workforce/manager_node.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/workforce/role_playing_node.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/workforce/single_agent_node.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/workforce/task_channel.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/workforce/utils.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/workforce/worker_node.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/workforce/workforce.py +0 -0
- {camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/workforce/workforce_prompt.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: camel-ai
|
|
3
|
-
Version: 0.1.6.
|
|
3
|
+
Version: 0.1.6.6
|
|
4
4
|
Summary: Communicative Agents for AI Society Study
|
|
5
5
|
Home-page: https://www.camel-ai.org/
|
|
6
6
|
License: Apache-2.0
|
|
@@ -202,7 +202,7 @@ conda create --name camel python=3.9
|
|
|
202
202
|
conda activate camel
|
|
203
203
|
|
|
204
204
|
# Clone github repo
|
|
205
|
-
git clone -b v0.1.6.
|
|
205
|
+
git clone -b v0.1.6.6 https://github.com/camel-ai/camel.git
|
|
206
206
|
|
|
207
207
|
# Change directory into project directory
|
|
208
208
|
cd camel
|
|
@@ -110,7 +110,7 @@ conda create --name camel python=3.9
|
|
|
110
110
|
conda activate camel
|
|
111
111
|
|
|
112
112
|
# Clone github repo
|
|
113
|
-
git clone -b v0.1.6.
|
|
113
|
+
git clone -b v0.1.6.6 https://github.com/camel-ai/camel.git
|
|
114
114
|
|
|
115
115
|
# Change directory into project directory
|
|
116
116
|
cd camel
|
|
@@ -103,3 +103,19 @@ class OpenAICompatibilityModel:
|
|
|
103
103
|
bool: Whether the model is in stream mode.
|
|
104
104
|
"""
|
|
105
105
|
return self.model_config_dict.get('stream', False)
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def token_limit(self) -> int:
|
|
109
|
+
r"""Returns the maximum token limit for the given model.
|
|
110
|
+
|
|
111
|
+
Returns:
|
|
112
|
+
int: The maximum token limit for the given model.
|
|
113
|
+
"""
|
|
114
|
+
max_tokens = self.model_config_dict.get("max_tokens")
|
|
115
|
+
if isinstance(max_tokens, int):
|
|
116
|
+
return max_tokens
|
|
117
|
+
print(
|
|
118
|
+
"Must set `max_tokens` as an integer in `model_config_dict` when"
|
|
119
|
+
" setting up the model. Using 4096 as default value."
|
|
120
|
+
)
|
|
121
|
+
return 4096
|
|
@@ -28,6 +28,11 @@ from camel.storages import (
|
|
|
28
28
|
)
|
|
29
29
|
from camel.types import StorageType
|
|
30
30
|
|
|
31
|
+
try:
|
|
32
|
+
from unstructured.documents.elements import Element
|
|
33
|
+
except ImportError:
|
|
34
|
+
Element = None
|
|
35
|
+
|
|
31
36
|
DEFAULT_TOP_K_RESULTS = 1
|
|
32
37
|
DEFAULT_SIMILARITY_THRESHOLD = 0.75
|
|
33
38
|
|
|
@@ -97,15 +102,19 @@ class AutoRetriever:
|
|
|
97
102
|
f"Unsupported vector storage type: {self.storage_type}"
|
|
98
103
|
)
|
|
99
104
|
|
|
100
|
-
def _collection_name_generator(self, content: str) -> str:
|
|
105
|
+
def _collection_name_generator(self, content: Union[str, Element]) -> str:
|
|
101
106
|
r"""Generates a valid collection name from a given file path or URL.
|
|
102
107
|
|
|
103
108
|
Args:
|
|
104
|
-
|
|
109
|
+
content (Union[str, Element]): Local file path, remote URL,
|
|
110
|
+
string content or Element object.
|
|
105
111
|
|
|
106
112
|
Returns:
|
|
107
113
|
str: A sanitized, valid collection name suitable for use.
|
|
108
114
|
"""
|
|
115
|
+
if isinstance(content, Element):
|
|
116
|
+
content = content.metadata.file_directory
|
|
117
|
+
|
|
109
118
|
# Check if the content is URL
|
|
110
119
|
parsed_url = urlparse(content)
|
|
111
120
|
is_url = all([parsed_url.scheme, parsed_url.netloc])
|
|
@@ -193,7 +202,7 @@ class AutoRetriever:
|
|
|
193
202
|
def run_vector_retriever(
|
|
194
203
|
self,
|
|
195
204
|
query: str,
|
|
196
|
-
contents: Union[str, List[str]],
|
|
205
|
+
contents: Union[str, List[str], Element, List[Element]],
|
|
197
206
|
top_k: int = DEFAULT_TOP_K_RESULTS,
|
|
198
207
|
similarity_threshold: float = DEFAULT_SIMILARITY_THRESHOLD,
|
|
199
208
|
return_detailed_info: bool = False,
|
|
@@ -203,8 +212,8 @@ class AutoRetriever:
|
|
|
203
212
|
|
|
204
213
|
Args:
|
|
205
214
|
query (str): Query string for information retriever.
|
|
206
|
-
contents (Union[str, List[str]]): Local
|
|
207
|
-
string contents.
|
|
215
|
+
contents (Union[str, List[str], Element, List[Element]]): Local
|
|
216
|
+
file paths, remote URLs, string contents or Element objects.
|
|
208
217
|
top_k (int, optional): The number of top results to return during
|
|
209
218
|
retrieve. Must be a positive integer. Defaults to
|
|
210
219
|
`DEFAULT_TOP_K_RESULTS`.
|
|
@@ -230,7 +239,9 @@ class AutoRetriever:
|
|
|
230
239
|
if not contents:
|
|
231
240
|
raise ValueError("content cannot be empty.")
|
|
232
241
|
|
|
233
|
-
contents =
|
|
242
|
+
contents = (
|
|
243
|
+
[contents] if isinstance(contents, (str, Element)) else contents
|
|
244
|
+
)
|
|
234
245
|
|
|
235
246
|
all_retrieved_info = []
|
|
236
247
|
for content in contents:
|
|
@@ -246,6 +257,7 @@ class AutoRetriever:
|
|
|
246
257
|
file_is_modified = False # initialize with a default value
|
|
247
258
|
if (
|
|
248
259
|
vector_storage_instance.status().vector_count != 0
|
|
260
|
+
and isinstance(content, str)
|
|
249
261
|
and os.path.exists(content)
|
|
250
262
|
):
|
|
251
263
|
# Get original modified date from file
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
|
|
14
14
|
import os
|
|
15
15
|
import warnings
|
|
16
|
-
from typing import Any, Dict, List, Optional
|
|
16
|
+
from typing import Any, Dict, List, Optional, Union
|
|
17
17
|
from urllib.parse import urlparse
|
|
18
18
|
|
|
19
19
|
from camel.embeddings import BaseEmbedding, OpenAIEmbedding
|
|
@@ -26,6 +26,11 @@ from camel.storages import (
|
|
|
26
26
|
VectorRecord,
|
|
27
27
|
)
|
|
28
28
|
|
|
29
|
+
try:
|
|
30
|
+
from unstructured.documents.elements import Element
|
|
31
|
+
except ImportError:
|
|
32
|
+
Element = None
|
|
33
|
+
|
|
29
34
|
DEFAULT_TOP_K_RESULTS = 1
|
|
30
35
|
DEFAULT_SIMILARITY_THRESHOLD = 0.75
|
|
31
36
|
|
|
@@ -69,7 +74,7 @@ class VectorRetriever(BaseRetriever):
|
|
|
69
74
|
|
|
70
75
|
def process(
|
|
71
76
|
self,
|
|
72
|
-
content: str,
|
|
77
|
+
content: Union[str, Element],
|
|
73
78
|
chunk_type: str = "chunk_by_title",
|
|
74
79
|
**kwargs: Any,
|
|
75
80
|
) -> None:
|
|
@@ -78,18 +83,22 @@ class VectorRetriever(BaseRetriever):
|
|
|
78
83
|
vector storage.
|
|
79
84
|
|
|
80
85
|
Args:
|
|
81
|
-
|
|
86
|
+
content (Union[str, Element]): Local file path, remote URL,
|
|
87
|
+
string content or Element object.
|
|
82
88
|
chunk_type (str): Type of chunking going to apply. Defaults to
|
|
83
89
|
"chunk_by_title".
|
|
84
90
|
**kwargs (Any): Additional keyword arguments for content parsing.
|
|
85
91
|
"""
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
is_url = all([parsed_url.scheme, parsed_url.netloc])
|
|
89
|
-
if is_url or os.path.exists(content):
|
|
90
|
-
elements = self.uio.parse_file_or_url(content, **kwargs)
|
|
92
|
+
if isinstance(content, Element):
|
|
93
|
+
elements = [content]
|
|
91
94
|
else:
|
|
92
|
-
|
|
95
|
+
# Check if the content is URL
|
|
96
|
+
parsed_url = urlparse(content)
|
|
97
|
+
is_url = all([parsed_url.scheme, parsed_url.netloc])
|
|
98
|
+
if is_url or os.path.exists(content):
|
|
99
|
+
elements = self.uio.parse_file_or_url(content, **kwargs) or []
|
|
100
|
+
else:
|
|
101
|
+
elements = [self.uio.create_element_from_text(text=content)]
|
|
93
102
|
if elements:
|
|
94
103
|
chunks = self.uio.chunk_elements(
|
|
95
104
|
chunk_type=chunk_type, elements=elements
|
|
@@ -110,7 +119,12 @@ class VectorRetriever(BaseRetriever):
|
|
|
110
119
|
# Prepare the payload for each vector record, includes the content
|
|
111
120
|
# path, chunk metadata, and chunk text
|
|
112
121
|
for vector, chunk in zip(batch_vectors, batch_chunks):
|
|
113
|
-
|
|
122
|
+
if isinstance(content, str):
|
|
123
|
+
content_path_info = {"content path": content}
|
|
124
|
+
elif isinstance(content, Element):
|
|
125
|
+
content_path_info = {
|
|
126
|
+
"content path": content.metadata.file_directory
|
|
127
|
+
}
|
|
114
128
|
chunk_metadata = {"metadata": chunk.metadata.to_dict()}
|
|
115
129
|
chunk_text = {"text": str(chunk)}
|
|
116
130
|
combined_dict = {
|
|
@@ -26,7 +26,6 @@ class RoleType(Enum):
|
|
|
26
26
|
class ModelType(Enum):
|
|
27
27
|
GPT_3_5_TURBO = "gpt-3.5-turbo"
|
|
28
28
|
GPT_4 = "gpt-4"
|
|
29
|
-
GPT_4_32K = "gpt-4-32k"
|
|
30
29
|
GPT_4_TURBO = "gpt-4-turbo"
|
|
31
30
|
GPT_4O = "gpt-4o"
|
|
32
31
|
GPT_4O_MINI = "gpt-4o-mini"
|
|
@@ -96,7 +95,6 @@ class ModelType(Enum):
|
|
|
96
95
|
return self in {
|
|
97
96
|
ModelType.GPT_3_5_TURBO,
|
|
98
97
|
ModelType.GPT_4,
|
|
99
|
-
ModelType.GPT_4_32K,
|
|
100
98
|
ModelType.GPT_4_TURBO,
|
|
101
99
|
ModelType.GPT_4O,
|
|
102
100
|
ModelType.GPT_4O_MINI,
|
|
@@ -110,7 +108,6 @@ class ModelType(Enum):
|
|
|
110
108
|
return self in {
|
|
111
109
|
ModelType.GPT_3_5_TURBO,
|
|
112
110
|
ModelType.GPT_4,
|
|
113
|
-
ModelType.GPT_4_32K,
|
|
114
111
|
ModelType.GPT_4_TURBO,
|
|
115
112
|
ModelType.GPT_4O,
|
|
116
113
|
}
|
|
@@ -231,7 +228,6 @@ class ModelType(Enum):
|
|
|
231
228
|
}:
|
|
232
229
|
return 16_384
|
|
233
230
|
elif self in {
|
|
234
|
-
ModelType.GPT_4_32K,
|
|
235
231
|
ModelType.MISTRAL_CODESTRAL,
|
|
236
232
|
ModelType.MISTRAL_7B,
|
|
237
233
|
ModelType.MISTRAL_MIXTRAL_8x7B,
|
|
@@ -440,7 +436,7 @@ class ModelPlatformType(Enum):
|
|
|
440
436
|
AZURE = "azure"
|
|
441
437
|
ANTHROPIC = "anthropic"
|
|
442
438
|
GROQ = "groq"
|
|
443
|
-
|
|
439
|
+
OPEN_SOURCE = "open-source"
|
|
444
440
|
OLLAMA = "ollama"
|
|
445
441
|
LITELLM = "litellm"
|
|
446
442
|
ZHIPU = "zhipuai"
|
|
@@ -448,7 +444,7 @@ class ModelPlatformType(Enum):
|
|
|
448
444
|
GEMINI = "gemini"
|
|
449
445
|
VLLM = "vllm"
|
|
450
446
|
MISTRAL = "mistral"
|
|
451
|
-
|
|
447
|
+
OPENAI_COMPATIBILITY_MODEL = "openai-compatibility-model"
|
|
452
448
|
|
|
453
449
|
@property
|
|
454
450
|
def is_openai(self) -> bool:
|
|
@@ -498,13 +494,13 @@ class ModelPlatformType(Enum):
|
|
|
498
494
|
@property
|
|
499
495
|
def is_open_source(self) -> bool:
|
|
500
496
|
r"""Returns whether this platform is opensource."""
|
|
501
|
-
return self is ModelPlatformType.
|
|
497
|
+
return self is ModelPlatformType.OPEN_SOURCE
|
|
502
498
|
|
|
503
499
|
@property
|
|
504
500
|
def is_openai_compatibility_model(self) -> bool:
|
|
505
501
|
r"""Returns whether this is a platform supporting openai
|
|
506
502
|
compatibility"""
|
|
507
|
-
return self is ModelPlatformType.
|
|
503
|
+
return self is ModelPlatformType.OPENAI_COMPATIBILITY_MODEL
|
|
508
504
|
|
|
509
505
|
@property
|
|
510
506
|
def is_gemini(self) -> bool:
|
|
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
|
|
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.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/create_qr_code/__init__.py
RENAMED
|
File without changes
|
{camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/create_qr_code/openapi.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/outschool/ai-plugin.json
RENAMED
|
File without changes
|
|
File without changes
|
{camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/outschool/paths/__init__.py
RENAMED
|
File without changes
|
{camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/outschool/paths/get_classes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/web_scraper/ai-plugin.json
RENAMED
|
File without changes
|
{camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/web_scraper/openapi.yaml
RENAMED
|
File without changes
|
{camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/web_scraper/paths/__init__.py
RENAMED
|
File without changes
|
{camel_ai-0.1.6.5 → camel_ai-0.1.6.6}/camel/toolkits/open_api_specs/web_scraper/paths/scraper.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
|