camel-ai 0.2.16__py3-none-any.whl → 0.2.18__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 +30 -6
- camel/agents/multi_hop_generator_agent.py +85 -0
- camel/agents/programmed_agent_instruction.py +148 -0
- camel/benchmarks/__init__.py +2 -0
- camel/benchmarks/apibank.py +5 -0
- camel/benchmarks/apibench.py +8 -4
- camel/benchmarks/gaia.py +2 -2
- camel/benchmarks/ragbench.py +333 -0
- camel/bots/__init__.py +1 -1
- camel/bots/discord/__init__.py +26 -0
- camel/bots/discord/discord_app.py +384 -0
- camel/bots/discord/discord_installation.py +64 -0
- camel/bots/discord/discord_store.py +160 -0
- camel/configs/__init__.py +3 -0
- camel/configs/anthropic_config.py +17 -15
- camel/configs/deepseek_config.py +2 -2
- camel/configs/internlm_config.py +60 -0
- camel/data_collector/base.py +5 -5
- camel/data_collector/sharegpt_collector.py +2 -2
- camel/datagen/self_instruct/self_instruct.py +4 -1
- camel/datagen/self_instruct/templates.py +12 -14
- camel/interpreters/internal_python_interpreter.py +24 -7
- camel/loaders/__init__.py +2 -0
- camel/loaders/panda_reader.py +337 -0
- camel/messages/__init__.py +10 -4
- camel/messages/func_message.py +30 -22
- camel/models/__init__.py +2 -0
- camel/models/anthropic_model.py +1 -22
- camel/models/cohere_model.py +8 -0
- camel/models/deepseek_model.py +67 -0
- camel/models/gemini_model.py +10 -1
- camel/models/internlm_model.py +143 -0
- camel/models/mistral_model.py +14 -7
- camel/models/model_factory.py +3 -0
- camel/models/reward/__init__.py +2 -0
- camel/models/reward/skywork_model.py +88 -0
- camel/synthetic_datagen/source2synth/data_processor.py +373 -0
- camel/synthetic_datagen/source2synth/models.py +68 -0
- camel/synthetic_datagen/source2synth/user_data_processor_config.py +73 -0
- camel/toolkits/google_scholar_toolkit.py +9 -0
- camel/types/__init__.py +4 -2
- camel/types/enums.py +81 -1
- camel/types/openai_types.py +6 -4
- camel/types/unified_model_type.py +5 -0
- camel/utils/token_counting.py +3 -3
- {camel_ai-0.2.16.dist-info → camel_ai-0.2.18.dist-info}/METADATA +158 -187
- {camel_ai-0.2.16.dist-info → camel_ai-0.2.18.dist-info}/RECORD +50 -37
- {camel_ai-0.2.16.dist-info → camel_ai-0.2.18.dist-info}/WHEEL +1 -1
- camel/bots/discord_app.py +0 -138
- {camel_ai-0.2.16.dist-info → camel_ai-0.2.18.dist-info}/LICENSE +0 -0
|
@@ -1,36 +1,43 @@
|
|
|
1
|
-
camel/__init__.py,sha256=
|
|
1
|
+
camel/__init__.py,sha256=W2l5H1hfYCuOVb4ujOE8couL8uN8a5Y-Woc6TeNwhug,912
|
|
2
2
|
camel/agents/__init__.py,sha256=LcS4m8s97-yADfznvcaAdUe9W0E9h3m6zrSc9H6m9so,1545
|
|
3
3
|
camel/agents/base.py,sha256=c4bJYL3G3Z41SaFdMPMn8ZjLdFiFaVOFO6EQIfuCVR8,1124
|
|
4
|
-
camel/agents/chat_agent.py,sha256=
|
|
4
|
+
camel/agents/chat_agent.py,sha256=KJM7FbcuOYcTF-PT9IYKtONjjpa-ZhsPFlrlCKf8zW0,56657
|
|
5
5
|
camel/agents/critic_agent.py,sha256=qFVlHlQo0CVgmPWfWYLT8_oP_KyzCLFsQw_nN_vu5Bs,7487
|
|
6
6
|
camel/agents/deductive_reasoner_agent.py,sha256=6BZGaq1hR6hKJuQtOfoYQnk_AkZpw_Mr7mUy2MspQgs,13540
|
|
7
7
|
camel/agents/embodied_agent.py,sha256=XBxBu5ZMmSJ4B2U3Z7SMwvLlgp6yNpaBe8HNQmY9CZA,7536
|
|
8
8
|
camel/agents/knowledge_graph_agent.py,sha256=MxG40XL8rs9sxcK8BKDLKurZz-Jui-oJOpYJaR5ZjMo,8962
|
|
9
|
+
camel/agents/multi_hop_generator_agent.py,sha256=ivPaNNdzjfttc4XKnCBiz8lvGh6j7YUQPgnPtbVM5J4,3182
|
|
10
|
+
camel/agents/programmed_agent_instruction.py,sha256=-cLnDSjeP5Fojct1AC9C3dTKsE49_ix7oFg9EgqQbxY,5418
|
|
9
11
|
camel/agents/role_assignment_agent.py,sha256=8bkTc14XToFHkP-ZOef5KP0P4hTlCDv0eNsDZPYuukA,5088
|
|
10
12
|
camel/agents/search_agent.py,sha256=7sTt4FvFI3xeWgauBneDnwAguWy86Cu9oB2tscYqFc4,4616
|
|
11
13
|
camel/agents/task_agent.py,sha256=KfJvZ5vOjjbrn20UGqSMnf6lds5ydfXdb7eNMxBU5vs,14654
|
|
12
14
|
camel/agents/tool_agents/__init__.py,sha256=hhd1kQYDshfvszN5JHBorINH9L3dI6xdDfKnbAAaKa0,856
|
|
13
15
|
camel/agents/tool_agents/base.py,sha256=T6G5OaAJd4L_yHSFoWcrtqkMEyhge42ppVjx7lYD3Cg,1393
|
|
14
16
|
camel/agents/tool_agents/hugging_face_tool_agent.py,sha256=nNySkdBRYaD05rLyPxzmq8W7D9WPcNHCY9h1jD6S0Hk,8717
|
|
15
|
-
camel/benchmarks/__init__.py,sha256=
|
|
16
|
-
camel/benchmarks/apibank.py,sha256=
|
|
17
|
-
camel/benchmarks/apibench.py,sha256=
|
|
17
|
+
camel/benchmarks/__init__.py,sha256=QGZK03uHvXbblVap8lOVUrXlE6VprEDaNev9tiQAWF8,1122
|
|
18
|
+
camel/benchmarks/apibank.py,sha256=mvI8irOfm0GxGafblT_4cpZmZKQO1XNfTDA_qioG9gY,21193
|
|
19
|
+
camel/benchmarks/apibench.py,sha256=zuR-is5xnH1nJWOXuBf73FRGvdtDxW2d0KUBtn_x4i8,19133
|
|
18
20
|
camel/benchmarks/base.py,sha256=GHbcE0KAenEiYb3x8orLgyGPp40KTdLHwahVFhI-cgE,4594
|
|
19
|
-
camel/benchmarks/gaia.py,sha256=
|
|
21
|
+
camel/benchmarks/gaia.py,sha256=ZMGzoQ2bdyCmVOdipj2lN3J-Ym1gySuZaYtSTvpUI9I,16774
|
|
20
22
|
camel/benchmarks/nexus.py,sha256=6e5KQ8Oy1pbdnKBfVcJWCC_nyMEWJxeRhEix4VDkEzc,18273
|
|
21
|
-
camel/
|
|
22
|
-
camel/bots/
|
|
23
|
+
camel/benchmarks/ragbench.py,sha256=yYJ8Rlt57tSdzrWiFk3fH2weiVlWv86yW-F-Gjfch1U,11063
|
|
24
|
+
camel/bots/__init__.py,sha256=6JRnSmUdnoZra20BJMqqrUrVfYSEbW9NyUksYmu6nwY,1174
|
|
25
|
+
camel/bots/discord/__init__.py,sha256=4ycOm2pMrQ7vQdjB80a5hz7TyiJGnSeHifoxkl8lyyQ,1027
|
|
26
|
+
camel/bots/discord/discord_app.py,sha256=h6FrTiwsw7TqImG62SvzUyNpmVHekwy0GWLmpM9P9s0,14222
|
|
27
|
+
camel/bots/discord/discord_installation.py,sha256=Mzl5xR_VbSx3SClP-IjokKZ0L6iAxU-CXdzy-5kApOE,2822
|
|
28
|
+
camel/bots/discord/discord_store.py,sha256=eGBMYG8gm28PmmhcJ-JOVk2UKTBobEzvb6-pCzr2P_o,5638
|
|
23
29
|
camel/bots/slack/__init__.py,sha256=iqySoYftEb7SI4pabhMvvTp1YYS09BvjwGXPEbcP1Hc,1055
|
|
24
30
|
camel/bots/slack/models.py,sha256=xMz3RO-88yrxPRrbBDjiabpbZIlpEHCvU-1CvASKARc,5143
|
|
25
31
|
camel/bots/slack/slack_app.py,sha256=SoSRZZnuTJ0aiLUBZqdG8cUFJzYpfpZh7304t0a_7Dg,9944
|
|
26
32
|
camel/bots/telegram_bot.py,sha256=gnyxToSHkjRpNDoCWBNv59WcdxeocVJHU2S4jexzM2E,2741
|
|
27
|
-
camel/configs/__init__.py,sha256=
|
|
28
|
-
camel/configs/anthropic_config.py,sha256=
|
|
33
|
+
camel/configs/__init__.py,sha256=4Q9kpo_hs7wKrpMMTCMXNtjMXdWsQ1GcUj2wB4dEODk,2905
|
|
34
|
+
camel/configs/anthropic_config.py,sha256=WIIyPYx7z70jiJoCc1Rz_58jrXRirpyJMlr0FrIii2I,3435
|
|
29
35
|
camel/configs/base_config.py,sha256=RrlOwwTUXeTjsDChZXUZIBK1uCojyavEbX21bGVLuog,3286
|
|
30
36
|
camel/configs/cohere_config.py,sha256=joF4GHqoTIRuEDlyTmxW5Ud23psE0xP1VCcEvKychko,3997
|
|
31
|
-
camel/configs/deepseek_config.py,sha256=
|
|
37
|
+
camel/configs/deepseek_config.py,sha256=jME5rfx8MYwyykZkAXZG-QhpMe1IBOvF9W38s5t9Fq0,6685
|
|
32
38
|
camel/configs/gemini_config.py,sha256=m4p9zijSBmIba41NbSa997NRz2HumiRcb5nTICAMPXM,5686
|
|
33
39
|
camel/configs/groq_config.py,sha256=Xe82_EbEYfacNXQApIHZiXw-NscufZxnLau72YEy_iA,5744
|
|
40
|
+
camel/configs/internlm_config.py,sha256=I1Hcyj5r3Sq7WUu0ypEUroqtOGbI2dXawUS6GVGhW6U,2979
|
|
34
41
|
camel/configs/litellm_config.py,sha256=oa6b67M0UotlvN7NuXrSUXLrskdpm3RMcew0rBfSsBc,4686
|
|
35
42
|
camel/configs/mistral_config.py,sha256=ul7AAeG3172PtodEEruAZky0OURwgp6YeNq8ma-4os4,3463
|
|
36
43
|
camel/configs/nvidia_config.py,sha256=1Oc3tulHOqAfx1mkrEywrxKIV1SBNzPm0CNrWgj9HXo,3226
|
|
@@ -46,8 +53,8 @@ camel/configs/yi_config.py,sha256=ZvrOroEdYgdyBWcYxn3CHyOA64P5I16XBVbgfusxaPQ,27
|
|
|
46
53
|
camel/configs/zhipuai_config.py,sha256=30plN-bSwogoP87V7elTRCMBspOZ58t4aKgg9ZoJFCk,3589
|
|
47
54
|
camel/data_collector/__init__.py,sha256=UWZya21xeJ6DvyLcf54XlYPg7ShOsNJmNR88kfRLmnA,924
|
|
48
55
|
camel/data_collector/alpaca_collector.py,sha256=fqS_kws1EU9mDWlVxPXcoD1GhJ7lEzC28muGIMxiUpg,4683
|
|
49
|
-
camel/data_collector/base.py,sha256=
|
|
50
|
-
camel/data_collector/sharegpt_collector.py,sha256=
|
|
56
|
+
camel/data_collector/base.py,sha256=Rn0aJBBvpMZYYTLT1yNjIalIvDuVVwOx6iawKlzocZQ,6708
|
|
57
|
+
camel/data_collector/sharegpt_collector.py,sha256=E06pf1CuqBAr2i0AQAlr6FtAEz7mwmKSq0RdFfX48PE,7255
|
|
51
58
|
camel/datagen/__init__.py,sha256=ZE9ObIQ_IKiElmt0pk-gX1aydfuvzugYSzCHfOlRJY8,859
|
|
52
59
|
camel/datagen/cotdatagen.py,sha256=WMw4NhUJVgpWOTvsMaQ1Fk1BYSXLtUlP-00wYPSuK7A,17650
|
|
53
60
|
camel/datagen/self_instruct/__init__.py,sha256=kRLWyCF-tGR9KEzpYImpupYvL15LcRfZCHndNu6AvV0,1179
|
|
@@ -55,8 +62,8 @@ camel/datagen/self_instruct/filter/__init__.py,sha256=UiGBfDRYO-3Z3dhaxAFVh4F8PF
|
|
|
55
62
|
camel/datagen/self_instruct/filter/filter_function.py,sha256=-voPwP83c_bkZrSAhwludBCtfsKDFG_jlDHcNUOLV7o,6691
|
|
56
63
|
camel/datagen/self_instruct/filter/filter_registry.py,sha256=5M_aNIopBeBj7U4fUsrAQpXQ2cZT6o6GaIIo0briFw0,2125
|
|
57
64
|
camel/datagen/self_instruct/filter/instruction_filter.py,sha256=la_7P5bVdrk2qffnYFI2Ie3cjCEEHBxe4HB8PZ5jMq0,3426
|
|
58
|
-
camel/datagen/self_instruct/self_instruct.py,sha256=
|
|
59
|
-
camel/datagen/self_instruct/templates.py,sha256=
|
|
65
|
+
camel/datagen/self_instruct/self_instruct.py,sha256=W_0LSSnTBcqZD1dtdWIgXeTcgFEVqjLyTZojj6lYC-0,14076
|
|
66
|
+
camel/datagen/self_instruct/templates.py,sha256=7YMOUcIig6vLjqSwkWCq8XeRCjWq0Mfyzptn7DOmeAo,19480
|
|
60
67
|
camel/datahubs/__init__.py,sha256=1a8fRuzgirO2pHtPnuisZ76iF_AN9GxMFq9gwFKWE5I,906
|
|
61
68
|
camel/datahubs/base.py,sha256=4QKWiJaeL5ReQpyTAbOtzHs-2CzAYbVyoMngYwdpZGU,4357
|
|
62
69
|
camel/datahubs/huggingface.py,sha256=OrrFUAQ9p92T4P2M_jq_ykR_Z6lfjd52CZszefm8Ls0,14883
|
|
@@ -74,16 +81,17 @@ camel/interpreters/__init__.py,sha256=NOQUsg7gR84zO8nBXu4JGUatsxSDJqZS6otltjXfop
|
|
|
74
81
|
camel/interpreters/base.py,sha256=F026f2ZnvHwikSMbk6APYNvB9qP4Ye5quSkTbFKV3O0,1898
|
|
75
82
|
camel/interpreters/docker_interpreter.py,sha256=Uo5r2jcJGjC6rn5Yzx9qLzlXTsA5RH7AnFe7I0rxo10,8700
|
|
76
83
|
camel/interpreters/e2b_interpreter.py,sha256=UC0en39x705cnnMCX4GxN7Tx0gCpu5yuWOFSBl_TagE,4815
|
|
77
|
-
camel/interpreters/internal_python_interpreter.py,sha256=
|
|
84
|
+
camel/interpreters/internal_python_interpreter.py,sha256=9psFm8mkN5-5WdTW__VBjDoh_u-PCifJMQYeo0DEoZo,22464
|
|
78
85
|
camel/interpreters/interpreter_error.py,sha256=uEhcmHmmcajt5C9PLeHs21h1fE6cmyt23tCAGie1kTA,880
|
|
79
86
|
camel/interpreters/ipython_interpreter.py,sha256=-erOR6imuh5pUtpbUYky3zoLDr30Y5E7lm59BwwxzNs,5976
|
|
80
87
|
camel/interpreters/subprocess_interpreter.py,sha256=HZBpYBI_W1WPZ6W0uEXYnlAzGC-7fJChGMXl1yoMTss,6909
|
|
81
|
-
camel/loaders/__init__.py,sha256=
|
|
88
|
+
camel/loaders/__init__.py,sha256=k-N8rJgDaINKiu3ao1PntNZ-zuV31g1bAHe86f-N4js,1199
|
|
82
89
|
camel/loaders/apify_reader.py,sha256=oaVjKyNhJhG-hTuIwrpZ2hsB4XTL0M-kUksgSL2R0ck,7952
|
|
83
90
|
camel/loaders/base_io.py,sha256=SAJInsmIYin45lXMSAhzWEFl7FjQ4WswqRU0D7sihRs,10170
|
|
84
91
|
camel/loaders/chunkr_reader.py,sha256=OhoJoXOjuI-XvJ4GOmiN_wB2NRQRHO4qk5PG4MHGMG0,6120
|
|
85
92
|
camel/loaders/firecrawl_reader.py,sha256=wCPHEWbfLv_q2x9MdTiSvJ_LDqUPO88lzPf0mmOBsME,5667
|
|
86
93
|
camel/loaders/jina_url_reader.py,sha256=dL9J5JlsFKEhi4gU_vYIxKvvf_RJ4LY9gG6i8P8JpcA,3601
|
|
94
|
+
camel/loaders/panda_reader.py,sha256=7z9mA869LTEI48VhPQc0t2fnIUZc4MGngIXCh6lff18,11361
|
|
87
95
|
camel/loaders/unstructured_io.py,sha256=Dh-MB02nrhVXFyQCUrYt4DATd12zi5bNWE47cPC5yBs,17429
|
|
88
96
|
camel/logger.py,sha256=j6mPsLJyKOn16o6Um57882mHsURQ8h-jia6Jd_34wRA,4239
|
|
89
97
|
camel/memories/__init__.py,sha256=JQbs-_7VkcVTjE8y9J0DWI3btDyMRZilTZNVuy_RxZM,1358
|
|
@@ -95,7 +103,7 @@ camel/memories/blocks/vectordb_block.py,sha256=gH55PZGbGMyUPjszUskxN0i-jTxiNpvgg
|
|
|
95
103
|
camel/memories/context_creators/__init__.py,sha256=pqzkBM2ro5JZD7RhWg05TjinphhCq0QTIqBJlIL1sJ0,800
|
|
96
104
|
camel/memories/context_creators/score_based.py,sha256=eNZDvLt1AV1bDXB_No0gDWDJQNczKL85E8WRjWetvxg,5379
|
|
97
105
|
camel/memories/records.py,sha256=wOMlTit1xWTs32uztGQ7KQ2wdT6vgHzFdpVCiih2lBA,3680
|
|
98
|
-
camel/messages/__init__.py,sha256=
|
|
106
|
+
camel/messages/__init__.py,sha256=Px-gTFp2Kcgbeb2sZQ_f4tqjoLHE-QEOiMHIMfPrvTw,1949
|
|
99
107
|
camel/messages/base.py,sha256=1jCeQn0Rs7vujjG2iqlBG449dGqM1INZVlVZGG5IY2E,19614
|
|
100
108
|
camel/messages/conversion/__init__.py,sha256=8B4C-0wj-dm925YRKNyx31WYK25PWpME7Q9jPtx2jkY,1047
|
|
101
109
|
camel/messages/conversion/alpaca.py,sha256=jBU2bMhzNjzptGuoasThYvFov_cYPCYt3pEfs0T7z7U,4163
|
|
@@ -104,19 +112,20 @@ camel/messages/conversion/sharegpt/__init__.py,sha256=oWUuHV5w85kxqhz_hoElLmCfzL
|
|
|
104
112
|
camel/messages/conversion/sharegpt/function_call_formatter.py,sha256=cn7e7CfmxEVFlfOqhjhNuA8nuWvWD6hXYn-3okXNxxQ,1832
|
|
105
113
|
camel/messages/conversion/sharegpt/hermes/__init__.py,sha256=mxuMSm-neaTgInIjYXuIVdC310E6jKJzM3IdtaJ4qY4,812
|
|
106
114
|
camel/messages/conversion/sharegpt/hermes/hermes_function_formatter.py,sha256=-9TT8iOQ-ieKSKR_PmJSA5Bi0uBx-qR7WQ6vxuFkorM,4639
|
|
107
|
-
camel/messages/func_message.py,sha256=
|
|
108
|
-
camel/models/__init__.py,sha256=
|
|
109
|
-
camel/models/anthropic_model.py,sha256=
|
|
115
|
+
camel/messages/func_message.py,sha256=y-MYXqbWL3QU2l9xLWZ8hAL7Yk7S_IgnHYVdnw5CfGc,5946
|
|
116
|
+
camel/models/__init__.py,sha256=CWSHG0qbIT64pQ6m3_NdXr9iydGF_8-5x-MJfcGtT0M,2456
|
|
117
|
+
camel/models/anthropic_model.py,sha256=BOj4vEtYVWbgy3DmBBlFh6LPXHbi1-LCPWzIxFuw9u4,5829
|
|
110
118
|
camel/models/azure_openai_model.py,sha256=ptL4YK8KkAbOA6XDxIhcEqxPOVGrYmzXqBzdsZAyHss,6083
|
|
111
119
|
camel/models/base_model.py,sha256=rxRZc31cKone4OGuvXi14FI_O9TC1aBvIy8WFSlVeSI,5727
|
|
112
|
-
camel/models/cohere_model.py,sha256=
|
|
113
|
-
camel/models/deepseek_model.py,sha256=
|
|
120
|
+
camel/models/cohere_model.py,sha256=4Sm-YvQnSquz8L4EN9qGn0qz6WTz4cm_BQtP7_NZOHQ,10731
|
|
121
|
+
camel/models/deepseek_model.py,sha256=VQRsxYp4W1h7tD_WcBgz5rfJGg4s6fLX8-FO_ggQ7bw,7555
|
|
114
122
|
camel/models/fish_audio_model.py,sha256=mid-wdV_hkxHay-vgnF3zshwdXLyO4eM31139_0BXzo,5586
|
|
115
|
-
camel/models/gemini_model.py,sha256=
|
|
123
|
+
camel/models/gemini_model.py,sha256=mS3_91vlLifsIolDR3TYRFzpV67iAnFiIRAZ8F5O7Qc,5462
|
|
116
124
|
camel/models/groq_model.py,sha256=dSD23iHOeQ7ppDp34h2waSbRWRL0OjpsisA9_oUEprc,5014
|
|
125
|
+
camel/models/internlm_model.py,sha256=khWd570OU3OZJpjGhmq81tJ_OsZM1m3zcyNDmdTmgqo,5114
|
|
117
126
|
camel/models/litellm_model.py,sha256=-9DcJlVBL25vsZOdA0UkEWt5G5PP8QaXXhcE2PRiwRw,5296
|
|
118
|
-
camel/models/mistral_model.py,sha256=
|
|
119
|
-
camel/models/model_factory.py,sha256=
|
|
127
|
+
camel/models/mistral_model.py,sha256=7OUTdTKzYPGYdi0n_hBAawlplYVR6XyvfzANHki660c,10182
|
|
128
|
+
camel/models/model_factory.py,sha256=cuBvdg8hCLXKlIRU9BxRAzsOGKfHmcj1lqzonnnj9ic,6304
|
|
120
129
|
camel/models/model_manager.py,sha256=ji1d1S-2lwk6uDggSyTnXbalu2F5lHaZnfPBBCJwBxU,7159
|
|
121
130
|
camel/models/nemotron_model.py,sha256=f663rRrybuAQgBCzaYW-myLp8nZM7S0N14MmOblfB3w,2958
|
|
122
131
|
camel/models/nvidia_model.py,sha256=7THp2MECXYBUpJWTZkkgGQqgsLfjXPMVb1aGWFA1vdg,5247
|
|
@@ -126,10 +135,11 @@ camel/models/openai_compatible_model.py,sha256=NnDSj7e-SDYDGq0VTQVHCE0kRTJ2JDb62
|
|
|
126
135
|
camel/models/openai_model.py,sha256=C7hHK-srzidaEl8edrHmhdYJBzMzvTBikHNQtOViheU,6848
|
|
127
136
|
camel/models/qwen_model.py,sha256=HqojMgFaUcOa-P6f4OWEyaRyNmDJvtfQIHUp_CtPjm4,5044
|
|
128
137
|
camel/models/reka_model.py,sha256=NalBlxuW-wu7rfVcHS5YAFDOSASzutnwukjN2e6pjUo,8329
|
|
129
|
-
camel/models/reward/__init__.py,sha256=
|
|
138
|
+
camel/models/reward/__init__.py,sha256=MqPN6wXh7Y1SoeNoFlYaMG6xHzLG0CYsv_3kB2atIQk,984
|
|
130
139
|
camel/models/reward/base_reward_model.py,sha256=erCmBCl51oFNjEHCXWxdHKIPNVJnQlNGgYBDn2bFD-Q,2064
|
|
131
140
|
camel/models/reward/evaluator.py,sha256=54ev5MuQ_5Tp0-LGO59EIuIkGrVMbtXXqpBR5Ps9kCM,2426
|
|
132
141
|
camel/models/reward/nemotron_model.py,sha256=EICDP2SyQpARupxsGWFKJHNADsVknT_t6tCG5R8AEPA,3916
|
|
142
|
+
camel/models/reward/skywork_model.py,sha256=KxHVDuwja2kZBCoCX8_sLBbXUGRSFsTPjgwsy1uyoyU,3246
|
|
133
143
|
camel/models/samba_model.py,sha256=5i3JgjLMFAFspdEwNIzWKMobM4xrDtO4aFXMHhEfJyU,14532
|
|
134
144
|
camel/models/sglang_model.py,sha256=dXOPSdskfF-gK2XUkzPkbTzY1lBVyjMEV6XWl-rEN7U,8147
|
|
135
145
|
camel/models/stub_model.py,sha256=TKTTryatEqCfjQ8NTco9ipj29CbLLtmWEcF_VcaWvQI,3703
|
|
@@ -211,6 +221,9 @@ camel/storages/vectordb_storages/__init__.py,sha256=NCXSLGFE5BuGWDYrsXuiJIsOJObw
|
|
|
211
221
|
camel/storages/vectordb_storages/base.py,sha256=XhgTthEg4jEIsycwKy48QXj4POnCx9j9UndlTM_cG9w,6675
|
|
212
222
|
camel/storages/vectordb_storages/milvus.py,sha256=XGKSQQflvqvTCo92rrgmbwYtsJKY9JxphdEQqGXf_kA,13483
|
|
213
223
|
camel/storages/vectordb_storages/qdrant.py,sha256=pDkhX3iu1rFCbiMz6F47EhgENCCVDx3ejh-zt988NtU,18011
|
|
224
|
+
camel/synthetic_datagen/source2synth/data_processor.py,sha256=e7m5LgLuKmLoe_WyAXahE1YVqaN-yNwOTXQy9dB_9Eg,12103
|
|
225
|
+
camel/synthetic_datagen/source2synth/models.py,sha256=l5iW9ziZOo73GHcujnJHqqmo-Z2HZef0umGeqz_bM4Y,2442
|
|
226
|
+
camel/synthetic_datagen/source2synth/user_data_processor_config.py,sha256=LVT2zbS5TT8GULkshgEDfGUCBLG4FqNztv266EP5Rjg,2255
|
|
214
227
|
camel/tasks/__init__.py,sha256=MuHwkw5GRQc8NOCzj8tjtBrr2Xg9KrcKp-ed_-2ZGIM,906
|
|
215
228
|
camel/tasks/task.py,sha256=FpYYbxWrAvqFJ4KvbjIn-EnTGpe9u_emSWUpdIuCAZo,13178
|
|
216
229
|
camel/tasks/task_prompt.py,sha256=3KZmKYKUPcTKe8EAZOZBN3G05JHRVt7oHY9ORzLVu1g,2150
|
|
@@ -229,7 +242,7 @@ camel/toolkits/data_commons_toolkit.py,sha256=_LJJ83eWEHuT8VsPLsH66LSakRkxwV4AkQ
|
|
|
229
242
|
camel/toolkits/function_tool.py,sha256=pOuhYjSF2a8IswSiIi4Lt5rr3Hb5kHnYA3RaIXul0ts,29890
|
|
230
243
|
camel/toolkits/github_toolkit.py,sha256=7HCw3kBvpMPL2sMQJ7H7gIslqEDBFyepdF3JicbRs0U,11628
|
|
231
244
|
camel/toolkits/google_maps_toolkit.py,sha256=a5ex5_PyhOEriv_0UloUgSpXGI7b12lwhQyewp78s1I,11948
|
|
232
|
-
camel/toolkits/google_scholar_toolkit.py,sha256=
|
|
245
|
+
camel/toolkits/google_scholar_toolkit.py,sha256=yTbK6syK4ojo1m6TpGEE_xCpv2y0Sr64KsjCb3BG21o,7432
|
|
233
246
|
camel/toolkits/human_toolkit.py,sha256=4YsZrCSFaMceM1MpGa-tg5gkmbdcZrm0qe3j2JRgfE8,1829
|
|
234
247
|
camel/toolkits/linkedin_toolkit.py,sha256=r1q8Ds95chC9vxtsaUYUDEitM8tDjUw_MrkpWpM4W8s,7911
|
|
235
248
|
camel/toolkits/math_toolkit.py,sha256=5yVF0bKuwkZIV01uICd3TOfktXlTERjKt4DrFyz_oaE,3639
|
|
@@ -271,17 +284,17 @@ camel/toolkits/twitter_toolkit.py,sha256=a2OLSJSW2wY7pOwOApb1qchZPXzH22Rbgm9Yd7-
|
|
|
271
284
|
camel/toolkits/video_toolkit.py,sha256=n1P7F_cjdnC2jfUQQiJnhueRYA83GIjUF7HWIrES5xs,7089
|
|
272
285
|
camel/toolkits/weather_toolkit.py,sha256=qHAMD56zqd5GWnEWiaA_0aBDwvgacdx0pAHScinY4GY,6965
|
|
273
286
|
camel/toolkits/whatsapp_toolkit.py,sha256=H_83AFCIoBMvZUcfUvfRTIAjfR2DR79xP2J-rfQKtNo,6326
|
|
274
|
-
camel/types/__init__.py,sha256=
|
|
275
|
-
camel/types/enums.py,sha256=
|
|
276
|
-
camel/types/openai_types.py,sha256=
|
|
277
|
-
camel/types/unified_model_type.py,sha256=
|
|
287
|
+
camel/types/__init__.py,sha256=_NYwmy412tubPYJon26fS9itGnylP48NLFKgwyMiJNs,2251
|
|
288
|
+
camel/types/enums.py,sha256=HUXCDBUfIqpHofhjuWTyCrlm81KSjcG1ghTeu6cuZqY,26730
|
|
289
|
+
camel/types/openai_types.py,sha256=7Vlci1uRbpSS81B958Z8ADnkzVyqxV7O5H8hv0i-tdo,2328
|
|
290
|
+
camel/types/unified_model_type.py,sha256=FT-abBHFTRN6qMRSVa_Lqljoc7JmyyMs8PeJfQUOSag,4119
|
|
278
291
|
camel/utils/__init__.py,sha256=0K8HKzUlOStBjo9Mt3tgFbv6YINMIiF0b7MSWRyZ-NA,2471
|
|
279
292
|
camel/utils/async_func.py,sha256=4esRhhGrvfm-iJRloUbU-sYWyHp_mt0bBBXpwyCv6vc,1556
|
|
280
293
|
camel/utils/commons.py,sha256=Ph5O_vihyH85BfQ-A4Z2kc0uO45QXtwQr0qbfpbK6Rg,21934
|
|
281
294
|
camel/utils/constants.py,sha256=MQD3bgLIq_NATp0D1iFkrwfkCwVX-PAOSXheTkkEdkY,1410
|
|
282
295
|
camel/utils/response_format.py,sha256=9KrbwtOM9cA3LSjTgLiK7oKy-53_uMh1cvpyNwwJpng,2419
|
|
283
|
-
camel/utils/token_counting.py,sha256=
|
|
284
|
-
camel_ai-0.2.
|
|
285
|
-
camel_ai-0.2.
|
|
286
|
-
camel_ai-0.2.
|
|
287
|
-
camel_ai-0.2.
|
|
296
|
+
camel/utils/token_counting.py,sha256=wLVgCFiLOWAzW2NtrZ-1t1VIsf2MT8hVAbc3pqAx4V4,15319
|
|
297
|
+
camel_ai-0.2.18.dist-info/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
|
|
298
|
+
camel_ai-0.2.18.dist-info/METADATA,sha256=7ecOLcwfdyOmJJn0p5pqRC270A3KxndMP6yuZnhZGEc,35136
|
|
299
|
+
camel_ai-0.2.18.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
300
|
+
camel_ai-0.2.18.dist-info/RECORD,,
|
camel/bots/discord_app.py
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
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 logging
|
|
15
|
-
import os
|
|
16
|
-
from typing import TYPE_CHECKING, List, Optional
|
|
17
|
-
|
|
18
|
-
from camel.utils import dependencies_required
|
|
19
|
-
|
|
20
|
-
if TYPE_CHECKING:
|
|
21
|
-
from discord import Message
|
|
22
|
-
|
|
23
|
-
logging.basicConfig(level=logging.INFO)
|
|
24
|
-
logger = logging.getLogger(__name__)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class DiscordApp:
|
|
28
|
-
r"""A class representing a Discord app that uses the `discord.py` library
|
|
29
|
-
to interact with Discord servers.
|
|
30
|
-
|
|
31
|
-
This bot can respond to messages in specific channels and only reacts to
|
|
32
|
-
messages that mention the bot.
|
|
33
|
-
|
|
34
|
-
Attributes:
|
|
35
|
-
channel_ids (Optional[List[int]]): A list of allowed channel IDs. If
|
|
36
|
-
provided, the bot will only respond to messages in these channels.
|
|
37
|
-
token (Optional[str]): The Discord bot token used for authentication.
|
|
38
|
-
"""
|
|
39
|
-
|
|
40
|
-
@dependencies_required('discord')
|
|
41
|
-
def __init__(
|
|
42
|
-
self,
|
|
43
|
-
channel_ids: Optional[List[int]] = None,
|
|
44
|
-
token: Optional[str] = None,
|
|
45
|
-
) -> None:
|
|
46
|
-
r"""Initialize the DiscordApp instance by setting up the Discord client
|
|
47
|
-
and event handlers.
|
|
48
|
-
|
|
49
|
-
Args:
|
|
50
|
-
channel_ids (Optional[List[int]]): A list of allowed channel IDs.
|
|
51
|
-
The bot will only respond to messages in these channels if
|
|
52
|
-
provided.
|
|
53
|
-
token (Optional[str]): The Discord bot token for authentication.
|
|
54
|
-
If not provided, the token will be retrieved from the
|
|
55
|
-
environment variable `DISCORD_TOKEN`.
|
|
56
|
-
|
|
57
|
-
Raises:
|
|
58
|
-
ValueError: If the `DISCORD_TOKEN` is not found in environment
|
|
59
|
-
variables.
|
|
60
|
-
"""
|
|
61
|
-
self.token = token or os.getenv('DISCORD_TOKEN')
|
|
62
|
-
self.channel_ids = channel_ids
|
|
63
|
-
|
|
64
|
-
if not self.token:
|
|
65
|
-
raise ValueError(
|
|
66
|
-
"`DISCORD_TOKEN` not found in environment variables. Get it"
|
|
67
|
-
" here: `https://discord.com/developers/applications`."
|
|
68
|
-
)
|
|
69
|
-
|
|
70
|
-
import discord
|
|
71
|
-
|
|
72
|
-
intents = discord.Intents.default()
|
|
73
|
-
intents.message_content = True
|
|
74
|
-
self._client = discord.Client(intents=intents)
|
|
75
|
-
|
|
76
|
-
# Register event handlers
|
|
77
|
-
self._client.event(self.on_ready)
|
|
78
|
-
self._client.event(self.on_message)
|
|
79
|
-
|
|
80
|
-
async def start(self):
|
|
81
|
-
r"""Asynchronously start the Discord bot using its token.
|
|
82
|
-
|
|
83
|
-
This method starts the bot and logs into Discord asynchronously using
|
|
84
|
-
the provided token. It should be awaited when used in an async
|
|
85
|
-
environment.
|
|
86
|
-
"""
|
|
87
|
-
await self._client.start(self.token)
|
|
88
|
-
|
|
89
|
-
def run(self) -> None:
|
|
90
|
-
r"""Start the Discord bot using its token.
|
|
91
|
-
|
|
92
|
-
This method starts the bot and logs into Discord synchronously using
|
|
93
|
-
the provided token. It blocks execution and keeps the bot running.
|
|
94
|
-
"""
|
|
95
|
-
self._client.run(self.token) # type: ignore[arg-type]
|
|
96
|
-
|
|
97
|
-
async def on_ready(self) -> None:
|
|
98
|
-
r"""Event handler that is called when the bot has successfully
|
|
99
|
-
connected to the Discord server.
|
|
100
|
-
|
|
101
|
-
When the bot is ready and logged into Discord, it prints a message
|
|
102
|
-
displaying the bot's username.
|
|
103
|
-
"""
|
|
104
|
-
logger.info(f'We have logged in as {self._client.user}')
|
|
105
|
-
|
|
106
|
-
async def on_message(self, message: 'Message') -> None:
|
|
107
|
-
r"""Event handler for processing incoming messages.
|
|
108
|
-
|
|
109
|
-
This method is called whenever a new message is received by the bot. It
|
|
110
|
-
will ignore messages sent by the bot itself, only respond to messages
|
|
111
|
-
in allowed channels (if specified), and only to messages that mention
|
|
112
|
-
the bot.
|
|
113
|
-
|
|
114
|
-
Args:
|
|
115
|
-
message (discord.Message): The message object received from
|
|
116
|
-
Discord.
|
|
117
|
-
"""
|
|
118
|
-
# If the message author is the bot itself,
|
|
119
|
-
# do not respond to this message
|
|
120
|
-
if message.author == self._client.user:
|
|
121
|
-
return
|
|
122
|
-
|
|
123
|
-
# If allowed channel IDs are provided,
|
|
124
|
-
# only respond to messages in those channels
|
|
125
|
-
if self.channel_ids and message.channel.id not in self.channel_ids:
|
|
126
|
-
return
|
|
127
|
-
|
|
128
|
-
# Only respond to messages that mention the bot
|
|
129
|
-
if not self._client.user or not self._client.user.mentioned_in(
|
|
130
|
-
message
|
|
131
|
-
):
|
|
132
|
-
return
|
|
133
|
-
|
|
134
|
-
logger.info(f"Received message: {message.content}")
|
|
135
|
-
|
|
136
|
-
@property
|
|
137
|
-
def client(self):
|
|
138
|
-
return self._client
|
|
File without changes
|