camel-ai 0.1.5.5__py3-none-any.whl → 0.1.5.7__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/agents/chat_agent.py +1 -1
- camel/agents/knowledge_graph_agent.py +11 -15
- camel/agents/task_agent.py +0 -1
- camel/configs/__init__.py +6 -0
- camel/configs/gemini_config.py +98 -0
- camel/configs/litellm_config.py +1 -1
- camel/configs/openai_config.py +1 -1
- camel/configs/zhipuai_config.py +1 -1
- camel/models/__init__.py +2 -0
- camel/models/base_model.py +4 -1
- camel/models/gemini_model.py +203 -0
- camel/models/litellm_model.py +16 -0
- camel/models/model_factory.py +3 -2
- camel/models/ollama_model.py +16 -0
- camel/models/zhipuai_model.py +0 -1
- camel/toolkits/__init__.py +36 -0
- camel/toolkits/base.py +1 -1
- camel/toolkits/code_execution.py +1 -1
- camel/toolkits/github_toolkit.py +3 -2
- camel/toolkits/google_maps_toolkit.py +367 -0
- camel/toolkits/math_toolkit.py +79 -0
- camel/toolkits/open_api_toolkit.py +548 -0
- camel/toolkits/retrieval_toolkit.py +76 -0
- camel/toolkits/search_toolkit.py +326 -0
- camel/toolkits/slack_toolkit.py +308 -0
- camel/toolkits/twitter_toolkit.py +522 -0
- camel/toolkits/weather_toolkit.py +173 -0
- camel/types/enums.py +18 -0
- camel/utils/__init__.py +2 -0
- camel/utils/async_func.py +1 -1
- camel/utils/token_counting.py +34 -0
- {camel_ai-0.1.5.5.dist-info → camel_ai-0.1.5.7.dist-info}/METADATA +3 -2
- {camel_ai-0.1.5.5.dist-info → camel_ai-0.1.5.7.dist-info}/RECORD +61 -60
- camel/functions/__init__.py +0 -51
- camel/functions/google_maps_function.py +0 -335
- camel/functions/math_functions.py +0 -61
- camel/functions/open_api_function.py +0 -508
- camel/functions/retrieval_functions.py +0 -61
- camel/functions/search_functions.py +0 -298
- camel/functions/slack_functions.py +0 -286
- camel/functions/twitter_function.py +0 -479
- camel/functions/weather_functions.py +0 -144
- /camel/{functions → toolkits}/open_api_specs/biztoc/__init__.py +0 -0
- /camel/{functions → toolkits}/open_api_specs/biztoc/ai-plugin.json +0 -0
- /camel/{functions → toolkits}/open_api_specs/biztoc/openapi.yaml +0 -0
- /camel/{functions → toolkits}/open_api_specs/coursera/__init__.py +0 -0
- /camel/{functions → toolkits}/open_api_specs/coursera/openapi.yaml +0 -0
- /camel/{functions → toolkits}/open_api_specs/create_qr_code/__init__.py +0 -0
- /camel/{functions → toolkits}/open_api_specs/create_qr_code/openapi.yaml +0 -0
- /camel/{functions → toolkits}/open_api_specs/klarna/__init__.py +0 -0
- /camel/{functions → toolkits}/open_api_specs/klarna/openapi.yaml +0 -0
- /camel/{functions → toolkits}/open_api_specs/nasa_apod/__init__.py +0 -0
- /camel/{functions → toolkits}/open_api_specs/nasa_apod/openapi.yaml +0 -0
- /camel/{functions → toolkits}/open_api_specs/outschool/__init__.py +0 -0
- /camel/{functions → toolkits}/open_api_specs/outschool/ai-plugin.json +0 -0
- /camel/{functions → toolkits}/open_api_specs/outschool/openapi.yaml +0 -0
- /camel/{functions → toolkits}/open_api_specs/outschool/paths/__init__.py +0 -0
- /camel/{functions → toolkits}/open_api_specs/outschool/paths/get_classes.py +0 -0
- /camel/{functions → toolkits}/open_api_specs/outschool/paths/search_teachers.py +0 -0
- /camel/{functions → toolkits}/open_api_specs/security_config.py +0 -0
- /camel/{functions → toolkits}/open_api_specs/speak/__init__.py +0 -0
- /camel/{functions → toolkits}/open_api_specs/speak/openapi.yaml +0 -0
- /camel/{functions → toolkits}/open_api_specs/web_scraper/__init__.py +0 -0
- /camel/{functions → toolkits}/open_api_specs/web_scraper/ai-plugin.json +0 -0
- /camel/{functions → toolkits}/open_api_specs/web_scraper/openapi.yaml +0 -0
- /camel/{functions → toolkits}/open_api_specs/web_scraper/paths/__init__.py +0 -0
- /camel/{functions → toolkits}/open_api_specs/web_scraper/paths/scraper.py +0 -0
- /camel/{functions → toolkits}/openai_function.py +0 -0
- {camel_ai-0.1.5.5.dist-info → camel_ai-0.1.5.7.dist-info}/WHEEL +0 -0
camel/types/enums.py
CHANGED
|
@@ -58,6 +58,10 @@ class ModelType(Enum):
|
|
|
58
58
|
# Nvidia models
|
|
59
59
|
NEMOTRON_4_REWARD = "nvidia/nemotron-4-340b-reward"
|
|
60
60
|
|
|
61
|
+
# Gemini models
|
|
62
|
+
GEMINI_1_5_FLASH = "gemini-1.5-flash"
|
|
63
|
+
GEMINI_1_5_PRO = "gemini-1.5-pro"
|
|
64
|
+
|
|
61
65
|
@property
|
|
62
66
|
def value_for_tiktoken(self) -> str:
|
|
63
67
|
return (
|
|
@@ -126,6 +130,10 @@ class ModelType(Enum):
|
|
|
126
130
|
ModelType.NEMOTRON_4_REWARD,
|
|
127
131
|
}
|
|
128
132
|
|
|
133
|
+
@property
|
|
134
|
+
def is_gemini(self) -> bool:
|
|
135
|
+
return self in {ModelType.GEMINI_1_5_FLASH, ModelType.GEMINI_1_5_PRO}
|
|
136
|
+
|
|
129
137
|
@property
|
|
130
138
|
def token_limit(self) -> int:
|
|
131
139
|
r"""Returns the maximum token limit for a given model.
|
|
@@ -142,6 +150,10 @@ class ModelType(Enum):
|
|
|
142
150
|
return 128000
|
|
143
151
|
elif self is ModelType.GPT_4O:
|
|
144
152
|
return 128000
|
|
153
|
+
elif self == ModelType.GEMINI_1_5_FLASH:
|
|
154
|
+
return 1048576
|
|
155
|
+
elif self == ModelType.GEMINI_1_5_PRO:
|
|
156
|
+
return 1048576
|
|
145
157
|
elif self == ModelType.GLM_4_OPEN_SOURCE:
|
|
146
158
|
return 8192
|
|
147
159
|
elif self == ModelType.GLM_3_TURBO:
|
|
@@ -331,6 +343,7 @@ class ModelPlatformType(Enum):
|
|
|
331
343
|
LITELLM = "litellm"
|
|
332
344
|
ZHIPU = "zhipuai"
|
|
333
345
|
DEFAULT = "default"
|
|
346
|
+
GEMINI = "gemini"
|
|
334
347
|
|
|
335
348
|
@property
|
|
336
349
|
def is_openai(self) -> bool:
|
|
@@ -367,6 +380,11 @@ class ModelPlatformType(Enum):
|
|
|
367
380
|
r"""Returns whether this platform is opensource."""
|
|
368
381
|
return self is ModelPlatformType.OPENSOURCE
|
|
369
382
|
|
|
383
|
+
@property
|
|
384
|
+
def is_gemini(self) -> bool:
|
|
385
|
+
r"""Returns whether this platform is Gemini."""
|
|
386
|
+
return self is ModelPlatformType.GEMINI
|
|
387
|
+
|
|
370
388
|
|
|
371
389
|
class AudioModelType(Enum):
|
|
372
390
|
TTS_1 = "tts-1"
|
camel/utils/__init__.py
CHANGED
|
@@ -32,6 +32,7 @@ from .constants import Constants
|
|
|
32
32
|
from .token_counting import (
|
|
33
33
|
AnthropicTokenCounter,
|
|
34
34
|
BaseTokenCounter,
|
|
35
|
+
GeminiTokenCounter,
|
|
35
36
|
LiteLLMTokenCounter,
|
|
36
37
|
OpenAITokenCounter,
|
|
37
38
|
OpenSourceTokenCounter,
|
|
@@ -60,4 +61,5 @@ __all__ = [
|
|
|
60
61
|
'dependencies_required',
|
|
61
62
|
'api_keys_required',
|
|
62
63
|
'is_docker_running',
|
|
64
|
+
'GeminiTokenCounter',
|
|
63
65
|
]
|
camel/utils/async_func.py
CHANGED
camel/utils/token_counting.py
CHANGED
|
@@ -342,6 +342,40 @@ class AnthropicTokenCounter(BaseTokenCounter):
|
|
|
342
342
|
return num_tokens
|
|
343
343
|
|
|
344
344
|
|
|
345
|
+
class GeminiTokenCounter(BaseTokenCounter):
|
|
346
|
+
def __init__(self, model_type: ModelType):
|
|
347
|
+
r"""Constructor for the token counter for Gemini models."""
|
|
348
|
+
import google.generativeai as genai
|
|
349
|
+
|
|
350
|
+
self.model_type = model_type
|
|
351
|
+
self._client = genai.GenerativeModel(self.model_type.value)
|
|
352
|
+
|
|
353
|
+
def count_tokens_from_messages(self, messages: List[OpenAIMessage]) -> int:
|
|
354
|
+
r"""Count number of tokens in the provided message list using
|
|
355
|
+
loaded tokenizer specific for this type of model.
|
|
356
|
+
|
|
357
|
+
Args:
|
|
358
|
+
messages (List[OpenAIMessage]): Message list with the chat history
|
|
359
|
+
in OpenAI API format.
|
|
360
|
+
|
|
361
|
+
Returns:
|
|
362
|
+
int: Number of tokens in the messages.
|
|
363
|
+
"""
|
|
364
|
+
converted_messages = []
|
|
365
|
+
for message in messages:
|
|
366
|
+
role = message.get('role')
|
|
367
|
+
if role == 'assistant':
|
|
368
|
+
role_to_gemini = 'model'
|
|
369
|
+
else:
|
|
370
|
+
role_to_gemini = 'user'
|
|
371
|
+
converted_message = {
|
|
372
|
+
"role": role_to_gemini,
|
|
373
|
+
"parts": message.get("content"),
|
|
374
|
+
}
|
|
375
|
+
converted_messages.append(converted_message)
|
|
376
|
+
return self._client.count_tokens(converted_messages).total_tokens
|
|
377
|
+
|
|
378
|
+
|
|
345
379
|
class LiteLLMTokenCounter:
|
|
346
380
|
def __init__(self, model_type: str):
|
|
347
381
|
r"""Constructor for the token counter for LiteLLM models.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: camel-ai
|
|
3
|
-
Version: 0.1.5.
|
|
3
|
+
Version: 0.1.5.7
|
|
4
4
|
Summary: Communicative Agents for AI Society Study
|
|
5
5
|
Home-page: https://www.camel-ai.org/
|
|
6
6
|
License: Apache-2.0
|
|
@@ -36,6 +36,7 @@ Requires-Dist: docker (>=7.1.0,<8.0.0) ; extra == "tools" or extra == "all"
|
|
|
36
36
|
Requires-Dist: docstring-parser (>=0.15,<0.16)
|
|
37
37
|
Requires-Dist: docx2txt (>=0.8,<0.9) ; extra == "tools" or extra == "all"
|
|
38
38
|
Requires-Dist: duckduckgo-search (>=6.1.0,<7.0.0) ; extra == "tools" or extra == "all"
|
|
39
|
+
Requires-Dist: google-generativeai (>=0.6.0,<0.7.0) ; extra == "model-platforms" or extra == "all"
|
|
39
40
|
Requires-Dist: googlemaps (>=4.10.0,<5.0.0) ; extra == "tools" or extra == "all"
|
|
40
41
|
Requires-Dist: imageio[pyav] (>=2.34.2,<3.0.0) ; extra == "tools" or extra == "all"
|
|
41
42
|
Requires-Dist: jsonschema (>=4,<5)
|
|
@@ -190,7 +191,7 @@ conda create --name camel python=3.9
|
|
|
190
191
|
conda activate camel
|
|
191
192
|
|
|
192
193
|
# Clone github repo
|
|
193
|
-
git clone -b v0.1.5.
|
|
194
|
+
git clone -b v0.1.5.7 https://github.com/camel-ai/camel.git
|
|
194
195
|
|
|
195
196
|
# Change directory into project directory
|
|
196
197
|
cd camel
|
|
@@ -1,64 +1,30 @@
|
|
|
1
|
-
camel/__init__.py,sha256=
|
|
1
|
+
camel/__init__.py,sha256=SK47YpajPvRRCOMzYN0wbiZPVZDCJ3KLZw01_0IYZdE,780
|
|
2
2
|
camel/agents/__init__.py,sha256=SSU1wbhZXWwQnE0rRxkpyN57kEu72KklsZNcdLkXfTs,1551
|
|
3
3
|
camel/agents/base.py,sha256=X39qWSiT1WnDqaJ9k3gQrTpOQSwUKzNEVpp5AY6fDH8,1130
|
|
4
|
-
camel/agents/chat_agent.py,sha256=
|
|
4
|
+
camel/agents/chat_agent.py,sha256=j0SbV3eOLJCV5xfKMFkuP8O1zXWr4MbNlzmlK1VjqdQ,27686
|
|
5
5
|
camel/agents/critic_agent.py,sha256=M3XNxRS0wAs5URjc_0kvtXqUlD-KpXq3L5ADz-KCKGU,7199
|
|
6
6
|
camel/agents/deductive_reasoner_agent.py,sha256=8R9hY_yCr_guq_ySuIE3eaYbiPeHVrsh6HKqIWrR0zY,13180
|
|
7
7
|
camel/agents/embodied_agent.py,sha256=Mm2-wvcpduXOvsHMBcavroACyvK06Mxe6QYTf80tdfI,7160
|
|
8
|
-
camel/agents/knowledge_graph_agent.py,sha256=
|
|
8
|
+
camel/agents/knowledge_graph_agent.py,sha256=YWJFVml8p6AE4WHxrXK01rMU0idey5SRbyuRYHEWFWQ,8559
|
|
9
9
|
camel/agents/role_assignment_agent.py,sha256=IWfu5b2RW1gYziffskErhdmybJOusVvhb9gqLF9_5mw,4800
|
|
10
10
|
camel/agents/search_agent.py,sha256=TMyV2LoBVB0hMnSex6q7xbyLRGsF_EMKxCZ8xbZBX9o,4404
|
|
11
|
-
camel/agents/task_agent.py,sha256=
|
|
11
|
+
camel/agents/task_agent.py,sha256=Sn7TckR9p2WyzgFLBN2MfjXaRAzQtW0bgEqpcOqOgzo,14252
|
|
12
12
|
camel/agents/tool_agents/__init__.py,sha256=ulTNWU2qoFGe3pvVmCq_sdfeSX3NKZ0due66TYvsL-M,862
|
|
13
13
|
camel/agents/tool_agents/base.py,sha256=nQAhfWi8a_bCgzlf5-G-tmj1fKm6AjpRc89NQkWwpnc,1399
|
|
14
14
|
camel/agents/tool_agents/hugging_face_tool_agent.py,sha256=1Z5tG6f_86eL0vmtRZ-BJvoLDFFLhoHt8JtDvgat1xU,8723
|
|
15
|
-
camel/configs/__init__.py,sha256=
|
|
15
|
+
camel/configs/__init__.py,sha256=momCJ2GkGVTwfNKmmBuJQZrz3hhsxkwLACxUT1-kLkE,1500
|
|
16
16
|
camel/configs/anthropic_config.py,sha256=zD7VMFUw4s7wmBlr64oSXxpEUkhp7wj9mvAd0WK2zFc,3308
|
|
17
17
|
camel/configs/base_config.py,sha256=CEF8ryl_dkH6LgOhwuP5_EgjaWCUCB-E3GcMWR-2YFE,870
|
|
18
|
-
camel/configs/
|
|
18
|
+
camel/configs/gemini_config.py,sha256=JAxd7Xx98VAlTz6l7CAPaZDS4OKz6e-daPJ_joUx96Q,4965
|
|
19
|
+
camel/configs/litellm_config.py,sha256=WU6D53Th7-BC6idoJZjiYZuHjkSHFVc1NEFyK-jJGrI,4884
|
|
19
20
|
camel/configs/ollama_config.py,sha256=npjJMe1lIK_WpnVtSnnKzKE78i2bWb6FPPoPa-nJ3Fo,4396
|
|
20
|
-
camel/configs/openai_config.py,sha256
|
|
21
|
-
camel/configs/zhipuai_config.py,sha256=
|
|
21
|
+
camel/configs/openai_config.py,sha256=-CkNfWoOFhFTyQ7Zy61C3iI8LaalLSBv_aE7mFmEmXg,7592
|
|
22
|
+
camel/configs/zhipuai_config.py,sha256=pjfMUn-dFy9BZSTlAXxyxQIIIjYmdlq_K4j6Rl78-_I,3768
|
|
22
23
|
camel/embeddings/__init__.py,sha256=9TI7392iYxrlYYerPoboDBOFvpEmP_nSSgtEjks1vJQ,1034
|
|
23
24
|
camel/embeddings/base.py,sha256=deX70VXGmWGRAPal3HheXvMaarymRR5I1i90KPWGWXs,2196
|
|
24
25
|
camel/embeddings/openai_embedding.py,sha256=Eh7Hbj6bWMTrX0Tze2IgPdD3-v9aRoBeE8AifG3jF8A,3332
|
|
25
26
|
camel/embeddings/sentence_transformers_embeddings.py,sha256=ayYIBOADdmmhlmo1iZS8tI_mZ-rX0sxjljyQpkuftcw,2730
|
|
26
27
|
camel/embeddings/vlm_embedding.py,sha256=VvD_b737snNrZTRE4ejFvWLjd_YT1DCTKl8yKIgRM-g,5436
|
|
27
|
-
camel/functions/__init__.py,sha256=3d1ZI3xx67DvHeBQhQQAu7IwTohC6Sa-_EPZeDE8_50,1737
|
|
28
|
-
camel/functions/google_maps_function.py,sha256=AmhlIyqkrkZF6Vb4O-wdtEKTQjRh5mMjHjS56ciGgjk,12468
|
|
29
|
-
camel/functions/math_functions.py,sha256=sPHSEOdHOmL38wZWcdyiBj0VEmf7mhQ0MBzya1SFNL0,1703
|
|
30
|
-
camel/functions/open_api_function.py,sha256=QW0zTIGxXT1h-JWIK1iAKsqvDXXX5FrIwHBJg8i6N4g,20518
|
|
31
|
-
camel/functions/open_api_specs/biztoc/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
32
|
-
camel/functions/open_api_specs/biztoc/ai-plugin.json,sha256=IJinQbLv5MFPGFwdN7PbOhwArFVExSEZdJspe-mOBIo,866
|
|
33
|
-
camel/functions/open_api_specs/biztoc/openapi.yaml,sha256=SQ2bYIWb1nVBtkBeFaOihiWQ71oZ2bzz0fCgu6igM8A,610
|
|
34
|
-
camel/functions/open_api_specs/coursera/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
35
|
-
camel/functions/open_api_specs/coursera/openapi.yaml,sha256=iouLcNNpVvXLfmkyKrbJlS3MEjBJ7TgVR48UID8dwfE,1981
|
|
36
|
-
camel/functions/open_api_specs/create_qr_code/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
37
|
-
camel/functions/open_api_specs/create_qr_code/openapi.yaml,sha256=d6ZNFmhCwlqZj8Rp9lmdU1dYPyh3-GnadbEUKHqjBfc,1158
|
|
38
|
-
camel/functions/open_api_specs/klarna/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
39
|
-
camel/functions/open_api_specs/klarna/openapi.yaml,sha256=9wpwRn8NLZL1reN6YUPsZP24hbDJJYvOJeeoWTk7ojQ,2887
|
|
40
|
-
camel/functions/open_api_specs/nasa_apod/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
41
|
-
camel/functions/open_api_specs/nasa_apod/openapi.yaml,sha256=4NPWtk9k7UwNpUihkrbCXzzs4zls-YnEYKe6qmtO8FU,2044
|
|
42
|
-
camel/functions/open_api_specs/outschool/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
43
|
-
camel/functions/open_api_specs/outschool/ai-plugin.json,sha256=QohJo8Ya0RGBvs9cBQR-UgSMl0gXJdNlWO8d2FyqdE8,1089
|
|
44
|
-
camel/functions/open_api_specs/outschool/openapi.yaml,sha256=t9gHdt09CQ8QMVnzEBxkcgH9eG720IsnVwB_6QxzSC4,8700
|
|
45
|
-
camel/functions/open_api_specs/outschool/paths/__init__.py,sha256=2XEfkKfyijEhzTodYGGoD5qvCQLYYlcxboQuNfLGBJs,780
|
|
46
|
-
camel/functions/open_api_specs/outschool/paths/get_classes.py,sha256=1skqdvrOjI_oywSe3KBV4zuqDg_EOpftpA3G6gXCZ8c,1122
|
|
47
|
-
camel/functions/open_api_specs/outschool/paths/search_teachers.py,sha256=p6J9jTxbBNVJTa3M1qaJu3VKtIZEZFX0etxw7a3pdFk,1125
|
|
48
|
-
camel/functions/open_api_specs/security_config.py,sha256=uxdd-Uh1hyHd3wvXdVahBH0hDdf0-IEoVk9Rh2vpAh0,904
|
|
49
|
-
camel/functions/open_api_specs/speak/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
50
|
-
camel/functions/open_api_specs/speak/openapi.yaml,sha256=rmM_-E4tYJ2LOpUlcQxfQtcQSRkVnsBkQWMmKdW2QqQ,6557
|
|
51
|
-
camel/functions/open_api_specs/web_scraper/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
52
|
-
camel/functions/open_api_specs/web_scraper/ai-plugin.json,sha256=jjHvbj0DQ4AYcL9JlSWhyJZ3mFj4eC33E4t6Ci54p3s,1028
|
|
53
|
-
camel/functions/open_api_specs/web_scraper/openapi.yaml,sha256=u_WalQ01e8W1D27VnZviOylpGmJ-zssYrfAgkzqdoyk,2191
|
|
54
|
-
camel/functions/open_api_specs/web_scraper/paths/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
55
|
-
camel/functions/open_api_specs/web_scraper/paths/scraper.py,sha256=SQGbFkshLN4xm-Ya49ssbSvaU1nFVNFYhWsEPYVeFe0,1123
|
|
56
|
-
camel/functions/openai_function.py,sha256=NyN8LBKdNeWizR7SnOp6VwEQhq29OJgskFfXq8EzIFg,14948
|
|
57
|
-
camel/functions/retrieval_functions.py,sha256=ZBwQhBeun86k6AnMDCpf0U-JYNaU0alDJAS1hdnumAQ,2281
|
|
58
|
-
camel/functions/search_functions.py,sha256=LtIGHsZLUveTMkdlaonlNoqFK_Sx1yGujdySeL1-kfg,10882
|
|
59
|
-
camel/functions/slack_functions.py,sha256=XQZnGHLURKcmtiqN1mxsBxdCbG4i8ArX8MnnNn91GQc,8988
|
|
60
|
-
camel/functions/twitter_function.py,sha256=hN8FR0bUtd0RLlCK8MFRDwFbbukYGTry9WhVKQEV_Y8,17121
|
|
61
|
-
camel/functions/weather_functions.py,sha256=CKBh8hS8ylUIAlEH6HlrjdgjLuzT-GM4WcvCBATMl0g,5774
|
|
62
28
|
camel/generators.py,sha256=tcYDoHwSKN0rBiu7u4rWN9pb61O8OaclrNaasCqHSJM,10437
|
|
63
29
|
camel/human.py,sha256=W_T7PSO-ReiJbC5JMX1wPrpt6LVFBqoNEwUdjDScG1M,4963
|
|
64
30
|
camel/interpreters/__init__.py,sha256=rHuOgwyWDLsuRzPLZ_WZteFBb_-zp4G-xfnDP7VFRC8,1115
|
|
@@ -83,18 +49,19 @@ camel/memories/records.py,sha256=zmZsYHVuq6fYqJDkzhNXF02uWLzdBemaEZeG0Ls90pU,361
|
|
|
83
49
|
camel/messages/__init__.py,sha256=djLvpz6AmjeLzuUSQl7J6T2O4x8MwSdcH0l9fbj_3yg,1468
|
|
84
50
|
camel/messages/base.py,sha256=1cyYITXxBsp2UCdOjF1Ky4W_PgRegEfitqbrF9PjUPs,13721
|
|
85
51
|
camel/messages/func_message.py,sha256=CCVkbz-2pdxXV0vBETI0xt7d7uiN8zACpRI7lCnfTFQ,3841
|
|
86
|
-
camel/models/__init__.py,sha256=
|
|
52
|
+
camel/models/__init__.py,sha256=832nhDetpPm8tg7h9O18rtLQoyANu4VUXF6J6ElDqlU,1465
|
|
87
53
|
camel/models/anthropic_model.py,sha256=mypGlcn2koBFf3FsgBAqOqWwxvY-c1prINr5nYvjvts,5540
|
|
88
|
-
camel/models/base_model.py,sha256=
|
|
89
|
-
camel/models/
|
|
90
|
-
camel/models/
|
|
54
|
+
camel/models/base_model.py,sha256=0o3Q4tEm0_i0FNyHZ2NGf0-iMfiZAqT5QZvi-Pw4FIY,4110
|
|
55
|
+
camel/models/gemini_model.py,sha256=xawgEhLjUJCRFWbKRM6zojHbrwNBc2elqki85v9PvIA,7291
|
|
56
|
+
camel/models/litellm_model.py,sha256=VXyBhNDKOgkx_GtaqCxm_nUcZFiGLTB_0x3GFa1prrc,5428
|
|
57
|
+
camel/models/model_factory.py,sha256=ScPN7stphd2J651VPTABMnh9tCSXS-bKMXwB65uDYYg,4107
|
|
91
58
|
camel/models/nemotron_model.py,sha256=2Idf4wrZervxvfu6av42EKjefFtDnBb6cKnWCJUkqI4,2682
|
|
92
|
-
camel/models/ollama_model.py,sha256=
|
|
59
|
+
camel/models/ollama_model.py,sha256=L-V41PdDnvrQJsl7yNCWdZGDfXIvSpxcf8lrqliyjBc,4677
|
|
93
60
|
camel/models/open_source_model.py,sha256=r8TGq-9xAwOANZ5s_y3fJUGAvS0zDg03RmbZ8X2ga-E,6156
|
|
94
61
|
camel/models/openai_audio_models.py,sha256=_ddOxqzFZCVZaK6h33Z0THU6HXk2XlJTxVWquZ3oOaQ,10042
|
|
95
62
|
camel/models/openai_model.py,sha256=RtUxWEOO9Mn1ClXep2eVgaZxTA4cgXttndF_O-9ulgs,4403
|
|
96
63
|
camel/models/stub_model.py,sha256=kyFXy9WyHgjnXDFO8Sag4q023lHGu4D0vyzfkGTSi9w,3704
|
|
97
|
-
camel/models/zhipuai_model.py,sha256=
|
|
64
|
+
camel/models/zhipuai_model.py,sha256=i-8H-bithdcslrFzybavj6Gf_RE3a80jXEXCoNl6_xQ,4753
|
|
98
65
|
camel/prompts/__init__.py,sha256=tvN1pz132rgjV_C4MoVrSMTqgtOP0SzdfzAPX8rjpaQ,2049
|
|
99
66
|
camel/prompts/ai_society.py,sha256=ApgvIED1Z_mdsWDNc2_u35Ktp7pEKksMrOIQKo_q5cI,6306
|
|
100
67
|
camel/prompts/base.py,sha256=VMde6w97zHPP03OA628wGwXhtJweoccOK1B1f3aESDo,8464
|
|
@@ -138,18 +105,52 @@ camel/terminators/__init__.py,sha256=pE7fcfDUNngdbm1BhzSQPRMXNbdd28rl9YbF4gKWwXE
|
|
|
138
105
|
camel/terminators/base.py,sha256=TSkl3maNEsdjyAniJaSgFfD4UF8RQ1LwNIiGw0dN8Gg,1396
|
|
139
106
|
camel/terminators/response_terminator.py,sha256=zcXuigbvlclUoBv4xcVbfU36ZohUT1RhI-rSnukloUY,4951
|
|
140
107
|
camel/terminators/token_limit_terminator.py,sha256=mK30wVUnoqNAvIo-wxkqY5gUSNay2M04rsAktKqoiOI,2087
|
|
141
|
-
camel/toolkits/__init__.py,sha256=
|
|
142
|
-
camel/toolkits/base.py,sha256=
|
|
143
|
-
camel/toolkits/code_execution.py,sha256=
|
|
144
|
-
camel/toolkits/github_toolkit.py,sha256=
|
|
108
|
+
camel/toolkits/__init__.py,sha256=nhlmtjrM4u8Mb-3biLLBUhwrMuZgAHF7cTgomhSoX3I,2030
|
|
109
|
+
camel/toolkits/base.py,sha256=Z3imvmBrzheGtn-5pcmCxi8WI8pcSPiIGR4L18nLy4Y,924
|
|
110
|
+
camel/toolkits/code_execution.py,sha256=fWBhn1_3adiv7YYuA0gJzEBlc_dYNS6_hVtDbgB-zX0,2425
|
|
111
|
+
camel/toolkits/github_toolkit.py,sha256=6SxHc63wzoBm_5vLSbZgMmaXwKwgX-B1CDMK7fjkErM,11504
|
|
112
|
+
camel/toolkits/google_maps_toolkit.py,sha256=g5PNhrc-ipQ-Vx_O7eilTy3LtYyp-vcErKYOk0OJw5I,14335
|
|
113
|
+
camel/toolkits/math_toolkit.py,sha256=r-85DHvihR87DU6n_W75pecV1P9xV3Hylfp6u-ue7T4,2521
|
|
114
|
+
camel/toolkits/open_api_specs/biztoc/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
115
|
+
camel/toolkits/open_api_specs/biztoc/ai-plugin.json,sha256=IJinQbLv5MFPGFwdN7PbOhwArFVExSEZdJspe-mOBIo,866
|
|
116
|
+
camel/toolkits/open_api_specs/biztoc/openapi.yaml,sha256=SQ2bYIWb1nVBtkBeFaOihiWQ71oZ2bzz0fCgu6igM8A,610
|
|
117
|
+
camel/toolkits/open_api_specs/coursera/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
118
|
+
camel/toolkits/open_api_specs/coursera/openapi.yaml,sha256=iouLcNNpVvXLfmkyKrbJlS3MEjBJ7TgVR48UID8dwfE,1981
|
|
119
|
+
camel/toolkits/open_api_specs/create_qr_code/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
120
|
+
camel/toolkits/open_api_specs/create_qr_code/openapi.yaml,sha256=d6ZNFmhCwlqZj8Rp9lmdU1dYPyh3-GnadbEUKHqjBfc,1158
|
|
121
|
+
camel/toolkits/open_api_specs/klarna/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
122
|
+
camel/toolkits/open_api_specs/klarna/openapi.yaml,sha256=9wpwRn8NLZL1reN6YUPsZP24hbDJJYvOJeeoWTk7ojQ,2887
|
|
123
|
+
camel/toolkits/open_api_specs/nasa_apod/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
124
|
+
camel/toolkits/open_api_specs/nasa_apod/openapi.yaml,sha256=4NPWtk9k7UwNpUihkrbCXzzs4zls-YnEYKe6qmtO8FU,2044
|
|
125
|
+
camel/toolkits/open_api_specs/outschool/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
126
|
+
camel/toolkits/open_api_specs/outschool/ai-plugin.json,sha256=QohJo8Ya0RGBvs9cBQR-UgSMl0gXJdNlWO8d2FyqdE8,1089
|
|
127
|
+
camel/toolkits/open_api_specs/outschool/openapi.yaml,sha256=t9gHdt09CQ8QMVnzEBxkcgH9eG720IsnVwB_6QxzSC4,8700
|
|
128
|
+
camel/toolkits/open_api_specs/outschool/paths/__init__.py,sha256=2XEfkKfyijEhzTodYGGoD5qvCQLYYlcxboQuNfLGBJs,780
|
|
129
|
+
camel/toolkits/open_api_specs/outschool/paths/get_classes.py,sha256=1skqdvrOjI_oywSe3KBV4zuqDg_EOpftpA3G6gXCZ8c,1122
|
|
130
|
+
camel/toolkits/open_api_specs/outschool/paths/search_teachers.py,sha256=p6J9jTxbBNVJTa3M1qaJu3VKtIZEZFX0etxw7a3pdFk,1125
|
|
131
|
+
camel/toolkits/open_api_specs/security_config.py,sha256=uxdd-Uh1hyHd3wvXdVahBH0hDdf0-IEoVk9Rh2vpAh0,904
|
|
132
|
+
camel/toolkits/open_api_specs/speak/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
133
|
+
camel/toolkits/open_api_specs/speak/openapi.yaml,sha256=rmM_-E4tYJ2LOpUlcQxfQtcQSRkVnsBkQWMmKdW2QqQ,6557
|
|
134
|
+
camel/toolkits/open_api_specs/web_scraper/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
135
|
+
camel/toolkits/open_api_specs/web_scraper/ai-plugin.json,sha256=jjHvbj0DQ4AYcL9JlSWhyJZ3mFj4eC33E4t6Ci54p3s,1028
|
|
136
|
+
camel/toolkits/open_api_specs/web_scraper/openapi.yaml,sha256=u_WalQ01e8W1D27VnZviOylpGmJ-zssYrfAgkzqdoyk,2191
|
|
137
|
+
camel/toolkits/open_api_specs/web_scraper/paths/__init__.py,sha256=f3LXNDzN2XWWoF2D0nesG8VuEA6Zd14i2aiTDbCm5bA,708
|
|
138
|
+
camel/toolkits/open_api_specs/web_scraper/paths/scraper.py,sha256=SQGbFkshLN4xm-Ya49ssbSvaU1nFVNFYhWsEPYVeFe0,1123
|
|
139
|
+
camel/toolkits/open_api_toolkit.py,sha256=dFPKPaMSaUmHx6BQQ2aQ3pPO6ZleURaIoMnLgUl6evs,23460
|
|
140
|
+
camel/toolkits/openai_function.py,sha256=NyN8LBKdNeWizR7SnOp6VwEQhq29OJgskFfXq8EzIFg,14948
|
|
141
|
+
camel/toolkits/retrieval_toolkit.py,sha256=XVBKCuGp_RjOaiJQ6dTwKlsQVg6X1JoROiwPyDw1tkE,3021
|
|
142
|
+
camel/toolkits/search_toolkit.py,sha256=05fKN9LYSvu70iXO4Vziv4QOU3WFbVnIW-8sTeilkLY,12932
|
|
143
|
+
camel/toolkits/slack_toolkit.py,sha256=JdgDJe7iExTmG7dDXOG6v5KpVjZ6_My_d_WFTYSxkw4,10839
|
|
144
|
+
camel/toolkits/twitter_toolkit.py,sha256=oQw8wRkU7iDxaocsmWvio4pU75pmq6FJAorPdQ2xEAE,19810
|
|
145
|
+
camel/toolkits/weather_toolkit.py,sha256=n4YrUI_jTIH7oqH918IdHbXLgfQ2BPGIWWK8Jp8G1Uw,7054
|
|
145
146
|
camel/types/__init__.py,sha256=ArKXATj3z_Vv4ISmROVeo6Mv3tj5kE1dTkqfgwyxVY4,1975
|
|
146
|
-
camel/types/enums.py,sha256=
|
|
147
|
+
camel/types/enums.py,sha256=ojXbi6vmY3zJm4CslxMh3y9NKIhFpWaPtsGb8G1buwQ,12427
|
|
147
148
|
camel/types/openai_types.py,sha256=BNQ6iCzKTjSvgcXFsAFIgrUS_YUFZBU6bDoyAp387hI,2045
|
|
148
|
-
camel/utils/__init__.py,sha256=
|
|
149
|
-
camel/utils/async_func.py,sha256=
|
|
149
|
+
camel/utils/__init__.py,sha256=m85T6bXzNe_2ObpAlXRMAkud4Qz4886WdLp_SEmJwV8,1867
|
|
150
|
+
camel/utils/async_func.py,sha256=SLo8KPkrNKdsONvFf3KBb33EgFn4gH2EKSX1aI_LKes,1578
|
|
150
151
|
camel/utils/commons.py,sha256=J7AOOh5huQkwTvjDt_gpiXNTXnuk0yM_hdtRU8clpNE,11298
|
|
151
152
|
camel/utils/constants.py,sha256=ZIw5ILfOyJFyjEAYrbJMANeg1_EZI-zMK_xVrkwALbM,1105
|
|
152
|
-
camel/utils/token_counting.py,sha256=
|
|
153
|
-
camel_ai-0.1.5.
|
|
154
|
-
camel_ai-0.1.5.
|
|
155
|
-
camel_ai-0.1.5.
|
|
153
|
+
camel/utils/token_counting.py,sha256=euqt0g7WXrHYZTOTBDzcPDL5P4gLzaDpdibH9-8cC3g,17096
|
|
154
|
+
camel_ai-0.1.5.7.dist-info/METADATA,sha256=bet28PiaOYyraBtYdVMSDVc1jaVnLy5qAwdFRtvWPKU,22065
|
|
155
|
+
camel_ai-0.1.5.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
156
|
+
camel_ai-0.1.5.7.dist-info/RECORD,,
|
camel/functions/__init__.py
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# =========== Copyright 2023 @ 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 @ CAMEL-AI.org. All Rights Reserved. ===========
|
|
14
|
-
# ruff: noqa: I001
|
|
15
|
-
from .openai_function import (
|
|
16
|
-
OpenAIFunction,
|
|
17
|
-
get_openai_function_schema,
|
|
18
|
-
get_openai_tool_schema,
|
|
19
|
-
)
|
|
20
|
-
from .open_api_specs.security_config import openapi_security_config
|
|
21
|
-
|
|
22
|
-
from .google_maps_function import MAP_FUNCS
|
|
23
|
-
from .math_functions import MATH_FUNCS
|
|
24
|
-
from .open_api_function import OPENAPI_FUNCS
|
|
25
|
-
from .retrieval_functions import RETRIEVAL_FUNCS
|
|
26
|
-
from .search_functions import SEARCH_FUNCS
|
|
27
|
-
from .twitter_function import TWITTER_FUNCS
|
|
28
|
-
from .weather_functions import WEATHER_FUNCS
|
|
29
|
-
from .slack_functions import SLACK_FUNCS
|
|
30
|
-
|
|
31
|
-
from .open_api_function import (
|
|
32
|
-
apinames_filepaths_to_funs_schemas,
|
|
33
|
-
generate_apinames_filepaths,
|
|
34
|
-
)
|
|
35
|
-
|
|
36
|
-
__all__ = [
|
|
37
|
-
'OpenAIFunction',
|
|
38
|
-
'get_openai_function_schema',
|
|
39
|
-
'get_openai_tool_schema',
|
|
40
|
-
'openapi_security_config',
|
|
41
|
-
'apinames_filepaths_to_funs_schemas',
|
|
42
|
-
'generate_apinames_filepaths',
|
|
43
|
-
'MAP_FUNCS',
|
|
44
|
-
'MATH_FUNCS',
|
|
45
|
-
'OPENAPI_FUNCS',
|
|
46
|
-
'RETRIEVAL_FUNCS',
|
|
47
|
-
'SEARCH_FUNCS',
|
|
48
|
-
'TWITTER_FUNCS',
|
|
49
|
-
'WEATHER_FUNCS',
|
|
50
|
-
'SLACK_FUNCS',
|
|
51
|
-
]
|