camel-ai 0.1.6.2__py3-none-any.whl → 0.1.6.3__py3-none-any.whl
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/__init__.py +1 -1
- camel/interpreters/docker_interpreter.py +1 -1
- camel/loaders/__init__.py +1 -2
- camel/loaders/base_io.py +118 -52
- camel/loaders/jina_url_reader.py +6 -6
- camel/loaders/unstructured_io.py +24 -286
- camel/retrievers/auto_retriever.py +25 -35
- camel/retrievers/vector_retriever.py +20 -18
- camel/storages/object_storages/__init__.py +22 -0
- camel/storages/object_storages/amazon_s3.py +205 -0
- camel/storages/object_storages/azure_blob.py +166 -0
- camel/storages/object_storages/base.py +115 -0
- camel/storages/object_storages/google_cloud.py +152 -0
- camel/toolkits/retrieval_toolkit.py +5 -5
- camel/toolkits/search_toolkit.py +4 -4
- {camel_ai-0.1.6.2.dist-info → camel_ai-0.1.6.3.dist-info}/METADATA +7 -3
- {camel_ai-0.1.6.2.dist-info → camel_ai-0.1.6.3.dist-info}/RECORD +18 -13
- {camel_ai-0.1.6.2.dist-info → camel_ai-0.1.6.3.dist-info}/WHEEL +0 -0
camel/toolkits/search_toolkit.py
CHANGED
|
@@ -65,7 +65,7 @@ class SearchToolkit(BaseToolkit):
|
|
|
65
65
|
return result
|
|
66
66
|
|
|
67
67
|
def search_duckduckgo(
|
|
68
|
-
self, query: str, source: str = "text", max_results: int =
|
|
68
|
+
self, query: str, source: str = "text", max_results: int = 5
|
|
69
69
|
) -> List[Dict[str, Any]]:
|
|
70
70
|
r"""Use DuckDuckGo search engine to search information for
|
|
71
71
|
the given query.
|
|
@@ -78,7 +78,7 @@ class SearchToolkit(BaseToolkit):
|
|
|
78
78
|
query (str): The query to be searched.
|
|
79
79
|
source (str): The type of information to query (e.g., "text",
|
|
80
80
|
"images", "videos"). Defaults to "text".
|
|
81
|
-
max_results (int): Max number of results, defaults to `
|
|
81
|
+
max_results (int): Max number of results, defaults to `5`.
|
|
82
82
|
|
|
83
83
|
Returns:
|
|
84
84
|
List[Dict[str, Any]]: A list of dictionaries where each dictionary
|
|
@@ -152,7 +152,7 @@ class SearchToolkit(BaseToolkit):
|
|
|
152
152
|
return responses
|
|
153
153
|
|
|
154
154
|
def search_google(
|
|
155
|
-
self, query: str, num_result_pages: int =
|
|
155
|
+
self, query: str, num_result_pages: int = 5
|
|
156
156
|
) -> List[Dict[str, Any]]:
|
|
157
157
|
r"""Use Google search engine to search information for the given query.
|
|
158
158
|
|
|
@@ -196,7 +196,7 @@ class SearchToolkit(BaseToolkit):
|
|
|
196
196
|
# Different language may get different result
|
|
197
197
|
search_language = "en"
|
|
198
198
|
# How many pages to return
|
|
199
|
-
num_result_pages =
|
|
199
|
+
num_result_pages = num_result_pages
|
|
200
200
|
# Constructing the URL
|
|
201
201
|
# Doc: https://developers.google.com/custom-search/v1/using_rest
|
|
202
202
|
url = (
|
|
@@ -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.3
|
|
4
4
|
Summary: Communicative Agents for AI Society Study
|
|
5
5
|
Home-page: https://www.camel-ai.org/
|
|
6
6
|
License: Apache-2.0
|
|
@@ -18,6 +18,7 @@ Provides-Extra: graph-storages
|
|
|
18
18
|
Provides-Extra: huggingface-agent
|
|
19
19
|
Provides-Extra: kv-stroages
|
|
20
20
|
Provides-Extra: model-platforms
|
|
21
|
+
Provides-Extra: object-storages
|
|
21
22
|
Provides-Extra: retrievers
|
|
22
23
|
Provides-Extra: test
|
|
23
24
|
Provides-Extra: tools
|
|
@@ -26,7 +27,9 @@ Requires-Dist: PyMuPDF (>=1.22.5,<2.0.0) ; extra == "tools" or extra == "all"
|
|
|
26
27
|
Requires-Dist: accelerate (>=0,<1) ; extra == "huggingface-agent" or extra == "all"
|
|
27
28
|
Requires-Dist: agentops (>=0.3.6,<0.4.0) ; extra == "tools" or extra == "all"
|
|
28
29
|
Requires-Dist: anthropic (>=0.29.0,<0.30.0)
|
|
30
|
+
Requires-Dist: azure-storage-blob (>=12.21.0,<13.0.0) ; extra == "object-storages" or extra == "all"
|
|
29
31
|
Requires-Dist: beautifulsoup4 (>=4,<5) ; extra == "tools" or extra == "all"
|
|
32
|
+
Requires-Dist: boto3 (>=1.34.149,<2.0.0) ; extra == "object-storages" or extra == "all"
|
|
30
33
|
Requires-Dist: cohere (>=4.56,<5.0) ; extra == "retrievers" or extra == "all"
|
|
31
34
|
Requires-Dist: colorama (>=0,<1)
|
|
32
35
|
Requires-Dist: curl_cffi (==0.6.2)
|
|
@@ -39,6 +42,7 @@ Requires-Dist: docx2txt (>=0.8,<0.9) ; extra == "tools" or extra == "all"
|
|
|
39
42
|
Requires-Dist: duckduckgo-search (>=6.1.0,<7.0.0) ; extra == "tools" or extra == "all"
|
|
40
43
|
Requires-Dist: eval-type-backport (==0.2.0)
|
|
41
44
|
Requires-Dist: firecrawl-py (>=0.0.20,<0.0.21) ; extra == "tools" or extra == "all"
|
|
45
|
+
Requires-Dist: google-cloud-storage (>=2.18.0,<3.0.0) ; extra == "object-storages" or extra == "all"
|
|
42
46
|
Requires-Dist: google-generativeai (>=0.6.0,<0.7.0) ; extra == "model-platforms" or extra == "all"
|
|
43
47
|
Requires-Dist: googlemaps (>=4.10.0,<5.0.0) ; extra == "tools" or extra == "all"
|
|
44
48
|
Requires-Dist: groq (>=0.5.0,<0.6.0)
|
|
@@ -79,7 +83,7 @@ Requires-Dist: soundfile (>=0,<1) ; extra == "huggingface-agent" or extra == "al
|
|
|
79
83
|
Requires-Dist: tiktoken (>=0.7.0,<0.8.0)
|
|
80
84
|
Requires-Dist: torch (>=2,<3) ; extra == "huggingface-agent" or extra == "all"
|
|
81
85
|
Requires-Dist: transformers (>=4,<5) ; extra == "huggingface-agent" or extra == "all"
|
|
82
|
-
Requires-Dist: unstructured[all-docs] (>=0.10
|
|
86
|
+
Requires-Dist: unstructured[all-docs] (>=0.10,<0.11) ; extra == "tools" or extra == "all"
|
|
83
87
|
Requires-Dist: wikipedia (>=1,<2) ; extra == "tools" or extra == "all"
|
|
84
88
|
Requires-Dist: wolframalpha (>=5.0.0,<6.0.0) ; extra == "tools" or extra == "all"
|
|
85
89
|
Project-URL: Documentation, https://docs.camel-ai.org
|
|
@@ -198,7 +202,7 @@ conda create --name camel python=3.9
|
|
|
198
202
|
conda activate camel
|
|
199
203
|
|
|
200
204
|
# Clone github repo
|
|
201
|
-
git clone -b v0.1.6.
|
|
205
|
+
git clone -b v0.1.6.3 https://github.com/camel-ai/camel.git
|
|
202
206
|
|
|
203
207
|
# Change directory into project directory
|
|
204
208
|
cd camel
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
camel/__init__.py,sha256=
|
|
1
|
+
camel/__init__.py,sha256=PNhIgDBoYrfSZq7HumcZgBXTCqBE8isbNCGTUZQQ1gs,780
|
|
2
2
|
camel/agents/__init__.py,sha256=SSU1wbhZXWwQnE0rRxkpyN57kEu72KklsZNcdLkXfTs,1551
|
|
3
3
|
camel/agents/base.py,sha256=X39qWSiT1WnDqaJ9k3gQrTpOQSwUKzNEVpp5AY6fDH8,1130
|
|
4
4
|
camel/agents/chat_agent.py,sha256=8yqGmaXnhfVE9dIgBanK74cfEZvHgKtx36YqUDvFuWE,36217
|
|
@@ -33,16 +33,16 @@ camel/generators.py,sha256=tcYDoHwSKN0rBiu7u4rWN9pb61O8OaclrNaasCqHSJM,10437
|
|
|
33
33
|
camel/human.py,sha256=pejmjjcyVDKZCffWq-016ZWrjX9uC6aqYnIyiwzrz5w,4968
|
|
34
34
|
camel/interpreters/__init__.py,sha256=HXspVCRZSFAXIJxhxrnr_RpZqZSWqgLOZ2KdQDlTn9s,1205
|
|
35
35
|
camel/interpreters/base.py,sha256=JZpQmxYBflPcDerj-R6TB6nnKvhnZR3Drraxo84JuxE,1904
|
|
36
|
-
camel/interpreters/docker_interpreter.py,sha256=
|
|
36
|
+
camel/interpreters/docker_interpreter.py,sha256=WJnLCTzqU8CyyTWMXtbS8y235d1iK8X9yESpa2mHsHM,8447
|
|
37
37
|
camel/interpreters/internal_python_interpreter.py,sha256=ZbVmSB2zvWbvvTOL0xpDlJel-I9rv13w1rP4RvtpNiE,21866
|
|
38
38
|
camel/interpreters/interpreter_error.py,sha256=4pI_dKohUKcQOrqJafolyjRfOHwBUuUBXCwwD46P4wE,886
|
|
39
39
|
camel/interpreters/ipython_interpreter.py,sha256=B0v1DCiq6PmOYQXXQAQBX1oOYjgJ0geLwUG9UxPR4TM,5950
|
|
40
40
|
camel/interpreters/subprocess_interpreter.py,sha256=nKxFXZJ9zGYlKdNlz6Ln7bvg65ejKZ8yAHgIFuR2WzM,6835
|
|
41
|
-
camel/loaders/__init__.py,sha256=
|
|
42
|
-
camel/loaders/base_io.py,sha256=
|
|
41
|
+
camel/loaders/__init__.py,sha256=ClE516UbyUes6Zut8CCiH0zWqFwwpgEcP9ur3dte8iU,949
|
|
42
|
+
camel/loaders/base_io.py,sha256=xzK67fqx66eYaM6fMXRJiSZfwKhFVNQmzuKURPtTzhk,10339
|
|
43
43
|
camel/loaders/firecrawl_reader.py,sha256=AJhZB2C0FTFwEVCW3UVo4Zp100Yqjeo9cRSqnayQA_g,7173
|
|
44
|
-
camel/loaders/jina_url_reader.py,sha256=
|
|
45
|
-
camel/loaders/unstructured_io.py,sha256=
|
|
44
|
+
camel/loaders/jina_url_reader.py,sha256=ur_2Z3NFrz5AbPFi5REyZh5fISkJ9H_UZV4gtmOSO04,3607
|
|
45
|
+
camel/loaders/unstructured_io.py,sha256=Ly8UuxAV9oaP3Umb92p6enoJwsE2iRsYHNJwLM2rNb0,16325
|
|
46
46
|
camel/memories/__init__.py,sha256=ml1Uj4Y_1Q2LfrTXOY38niF0x1H-N-u_zoN_VvR939U,1364
|
|
47
47
|
camel/memories/agent_memories.py,sha256=pzmjztFXPyNpabMWLi_-oJljMkYQvDP_s6Yq5U0hVEs,6097
|
|
48
48
|
camel/memories/base.py,sha256=kbyAmKkOfFdOKfHxwao8bIAbRSuOEXyzxPFd0NlvUCE,5003
|
|
@@ -91,11 +91,11 @@ camel/prompts/video_description_prompt.py,sha256=HRd3fHXftKwBm5QH7Tvm3FabgZPCoAv
|
|
|
91
91
|
camel/responses/__init__.py,sha256=edtTQskOgq5obyITziRFL62HTJP9sAikAtP9vrFacEQ,795
|
|
92
92
|
camel/responses/agent_responses.py,sha256=sGlGwXz2brWI-FpiU5EhVRpZvcfGWUmooAF0ukqAF3I,1771
|
|
93
93
|
camel/retrievers/__init__.py,sha256=CuP3B77zl2PoF-W2y9xSkTGRzoK2J4TlUHdCtuJD8dg,1059
|
|
94
|
-
camel/retrievers/auto_retriever.py,sha256=
|
|
94
|
+
camel/retrievers/auto_retriever.py,sha256=eL_HcazqaDq2bTtkBPdWCypQef2LrzEfaEXSnT1O3YA,13183
|
|
95
95
|
camel/retrievers/base.py,sha256=sgqaJDwIkWluEgPBlukFN7RYZJnrp0imCAOEWm6bZ40,2646
|
|
96
96
|
camel/retrievers/bm25_retriever.py,sha256=qM1oCQ-fak3izEjQVn18t0aceW-W8cRKbaYPwcHrEjI,5067
|
|
97
97
|
camel/retrievers/cohere_rerank_retriever.py,sha256=HvnFqXpsX9EdBOab0kFLDyxxJnknPFMVxyQJQDlHbOA,4100
|
|
98
|
-
camel/retrievers/vector_retriever.py,sha256=
|
|
98
|
+
camel/retrievers/vector_retriever.py,sha256=QTr9C3helg0W7F5TffWXh8Uicq8IhKduA3AlAE_FJBc,7282
|
|
99
99
|
camel/societies/__init__.py,sha256=JhGwUHjht4CewzC3shKuxmgB3oS7FIxIxmiKyhNsfIs,832
|
|
100
100
|
camel/societies/babyagi_playing.py,sha256=bDeHFPQ1Zocnb8HSu56xZMlC6-AZACZWqGM5l9KB-EA,11866
|
|
101
101
|
camel/societies/role_playing.py,sha256=VZRethoZxYtm-phEao79ksSyQqo2HHm8taNY-BjFDVE,22262
|
|
@@ -109,6 +109,11 @@ camel/storages/key_value_storages/base.py,sha256=knxni8WiyTXJ2emZQO-JIsbxw6Ei7EO
|
|
|
109
109
|
camel/storages/key_value_storages/in_memory.py,sha256=pAcKkVd7jlPS6seR31agdyjx9TNIIRMIyx497XWXwbs,1955
|
|
110
110
|
camel/storages/key_value_storages/json.py,sha256=BlOhuyWbSjzKixtA5e9O0z8BFK4pi96OcPNxnFfDPQw,3471
|
|
111
111
|
camel/storages/key_value_storages/redis.py,sha256=nQmdVUTLL0bW3hDeX5k-V2XKv0n6wuvbBxlrBmWVbpw,5706
|
|
112
|
+
camel/storages/object_storages/__init__.py,sha256=H-0dcB_SOxn1eyg2ojq5Nk9dZQURBsPZ6u2Xw3L7_To,921
|
|
113
|
+
camel/storages/object_storages/amazon_s3.py,sha256=re64goLCJQp_nEHBCtqRzt8806RSQInhz7FuIvC2hK4,7253
|
|
114
|
+
camel/storages/object_storages/azure_blob.py,sha256=vtP5b9JGPenueKmU0O07nlRgAOgqIomyf7WvNfKmaFQ,5975
|
|
115
|
+
camel/storages/object_storages/base.py,sha256=E8fefvH7I5iMKtOMNjltOR6BQsoKeqBxYtitnx_dbAo,3802
|
|
116
|
+
camel/storages/object_storages/google_cloud.py,sha256=X4_bXmgeLYxG2h6OWZw-toxTliYwpujOjShGcFjYrAY,5315
|
|
112
117
|
camel/storages/vectordb_storages/__init__.py,sha256=hEhPyCPlzyXUsDFDzKRdLBj09rO1b5bsn76AJrDcaG4,1076
|
|
113
118
|
camel/storages/vectordb_storages/base.py,sha256=XNRv6CFg1rb9G_hZhUmN4t9XCU9rCakH0hooO1osTsE,6681
|
|
114
119
|
camel/storages/vectordb_storages/milvus.py,sha256=EkwaG3bq7djektSI2jdSTccE7GjBpZruqXQoPTxtyoo,13489
|
|
@@ -154,8 +159,8 @@ camel/toolkits/open_api_specs/web_scraper/paths/__init__.py,sha256=f3LXNDzN2XWWo
|
|
|
154
159
|
camel/toolkits/open_api_specs/web_scraper/paths/scraper.py,sha256=SQGbFkshLN4xm-Ya49ssbSvaU1nFVNFYhWsEPYVeFe0,1123
|
|
155
160
|
camel/toolkits/open_api_toolkit.py,sha256=rbQrhY6gHoZi9kiX9138pah9qZ2S8K5Vex1zFGWeCK8,23403
|
|
156
161
|
camel/toolkits/openai_function.py,sha256=eaE441qxLvuRKr_WrpYLGkr5P2Nav07VVdR29n76RkU,14767
|
|
157
|
-
camel/toolkits/retrieval_toolkit.py,sha256=
|
|
158
|
-
camel/toolkits/search_toolkit.py,sha256=
|
|
162
|
+
camel/toolkits/retrieval_toolkit.py,sha256=E3nxlzG37QrJiuE0ctfBlVTeEj-2cebVdrGw_L_gNsQ,2979
|
|
163
|
+
camel/toolkits/search_toolkit.py,sha256=vXe026bQpLic09iwY5PN4RS6SXeHYBBkjfnOlJYB670,12943
|
|
159
164
|
camel/toolkits/slack_toolkit.py,sha256=JdgDJe7iExTmG7dDXOG6v5KpVjZ6_My_d_WFTYSxkw4,10839
|
|
160
165
|
camel/toolkits/twitter_toolkit.py,sha256=oQw8wRkU7iDxaocsmWvio4pU75pmq6FJAorPdQ2xEAE,19810
|
|
161
166
|
camel/toolkits/weather_toolkit.py,sha256=n4YrUI_jTIH7oqH918IdHbXLgfQ2BPGIWWK8Jp8G1Uw,7054
|
|
@@ -177,6 +182,6 @@ camel/workforce/utils.py,sha256=Z-kODz5PMPtfeKKVqpcQq-b-B8oqC7XSwi_F3__Ijhs,3526
|
|
|
177
182
|
camel/workforce/worker_node.py,sha256=wsRqk2rugCvvkcmCzvn-y-gQuyuJGAG8PIr1KtgqJFw,3878
|
|
178
183
|
camel/workforce/workforce.py,sha256=SVJJgSSkYvk05RgL9oaJzHwzziH7u51KLINRuzLB8BI,1773
|
|
179
184
|
camel/workforce/workforce_prompt.py,sha256=cAWYEIA0rau5itEekSoUIFttBzpKM9RzB6x-mfukGSU,4665
|
|
180
|
-
camel_ai-0.1.6.
|
|
181
|
-
camel_ai-0.1.6.
|
|
182
|
-
camel_ai-0.1.6.
|
|
185
|
+
camel_ai-0.1.6.3.dist-info/METADATA,sha256=LLta5Xrz_AmHRLYx7D96RzBTqRXiQLZC0a2Zlt8Ec3I,24309
|
|
186
|
+
camel_ai-0.1.6.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
187
|
+
camel_ai-0.1.6.3.dist-info/RECORD,,
|
|
File without changes
|