camel-ai 0.2.28__py3-none-any.whl → 0.2.29__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 +151 -4
- camel/datasets/__init__.py +2 -6
- camel/datasets/base.py +269 -801
- camel/environments/base.py +3 -5
- {camel_ai-0.2.28.dist-info → camel_ai-0.2.29.dist-info}/METADATA +2 -2
- {camel_ai-0.2.28.dist-info → camel_ai-0.2.29.dist-info}/RECORD +9 -9
- {camel_ai-0.2.28.dist-info → camel_ai-0.2.29.dist-info}/WHEEL +0 -0
- {camel_ai-0.2.28.dist-info → camel_ai-0.2.29.dist-info}/licenses/LICENSE +0 -0
camel/environments/base.py
CHANGED
|
@@ -20,7 +20,7 @@ from typing import Any, Dict, List, Optional, Tuple
|
|
|
20
20
|
from pydantic import BaseModel, Field
|
|
21
21
|
|
|
22
22
|
from camel.agents import ChatAgent
|
|
23
|
-
from camel.datasets.base import
|
|
23
|
+
from camel.datasets.base import GenerativeDataset, StaticDataset
|
|
24
24
|
from camel.extractors.base import BaseExtractor
|
|
25
25
|
from camel.logger import get_logger
|
|
26
26
|
from camel.verifiers.base import (
|
|
@@ -139,7 +139,7 @@ class BaseEnvironment(ABC):
|
|
|
139
139
|
|
|
140
140
|
def __init__(
|
|
141
141
|
self,
|
|
142
|
-
dataset:
|
|
142
|
+
dataset: StaticDataset,
|
|
143
143
|
verifier: BaseVerifier,
|
|
144
144
|
extractor: BaseExtractor,
|
|
145
145
|
max_steps: Optional[int] = None,
|
|
@@ -151,7 +151,7 @@ class BaseEnvironment(ABC):
|
|
|
151
151
|
r"""Initialize the environment.
|
|
152
152
|
|
|
153
153
|
Args:
|
|
154
|
-
dataset (
|
|
154
|
+
dataset (StaticDataset): Dataset to sample questions from.
|
|
155
155
|
verifier (BaseVerifier): Verifier to check responses.
|
|
156
156
|
extractor (BaseExtractor): Extractor to process LLM responses.
|
|
157
157
|
max_steps (Optional[int]): Maximum steps per episode. (default:
|
|
@@ -393,7 +393,6 @@ class BaseEnvironment(ABC):
|
|
|
393
393
|
question = getattr(datapoint, "question", None)
|
|
394
394
|
final_answer = getattr(datapoint, "final_answer", None)
|
|
395
395
|
rationale = getattr(datapoint, "rationale", None)
|
|
396
|
-
difficulty = getattr(datapoint, "difficulty", None)
|
|
397
396
|
metadata = getattr(datapoint, "metadata", {})
|
|
398
397
|
|
|
399
398
|
if not question or not final_answer:
|
|
@@ -407,7 +406,6 @@ class BaseEnvironment(ABC):
|
|
|
407
406
|
question=question,
|
|
408
407
|
context={
|
|
409
408
|
"final_answer": final_answer,
|
|
410
|
-
"difficulty": difficulty,
|
|
411
409
|
"rationale": rationale,
|
|
412
410
|
},
|
|
413
411
|
metadata={
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: camel-ai
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.29
|
|
4
4
|
Summary: Communicative Agents for AI Society Study
|
|
5
5
|
Project-URL: Homepage, https://www.camel-ai.org/
|
|
6
6
|
Project-URL: Repository, https://github.com/camel-ai/camel
|
|
@@ -447,7 +447,7 @@ pip install camel-ai
|
|
|
447
447
|
|
|
448
448
|
For more detailed instructions and additional configuration options, check out the [installation section](https://github.com/camel-ai/camel/blob/master/docs/get_started/installation.md).
|
|
449
449
|
|
|
450
|
-
After running, you can explore our CAMEL Tech Stack and Cookbooks at [www.docs.camel-ai.org](https://
|
|
450
|
+
After running, you can explore our CAMEL Tech Stack and Cookbooks at [www.docs.camel-ai.org](https://docs.camel-ai.org) to build powerful multi-agent systems.
|
|
451
451
|
|
|
452
452
|
We provide a [](https://colab.research.google.com/drive/1AzP33O8rnMW__7ocWJhVBXjKziJXPtim?usp=sharing) demo showcasing a conversation between two ChatGPT agents playing roles as a python programmer and a stock trader collaborating on developing a trading bot for stock market.
|
|
453
453
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
camel/__init__.py,sha256=
|
|
1
|
+
camel/__init__.py,sha256=YKaTrUHy95ttm15Tixm09ZAtM9rfYZdrGHowGgC3MTw,912
|
|
2
2
|
camel/generators.py,sha256=JRqj9_m1PF4qT6UtybzTQ-KBT9MJQt18OAAYvQ_fr2o,13844
|
|
3
3
|
camel/human.py,sha256=9X09UmxI2JqQnhrFfnZ3B9EzFmVfdSWQcjLWTIXKXe0,4962
|
|
4
4
|
camel/logger.py,sha256=j6mPsLJyKOn16o6Um57882mHsURQ8h-jia6Jd_34wRA,4239
|
|
@@ -7,7 +7,7 @@ camel/agents/__init__.py,sha256=LcS4m8s97-yADfznvcaAdUe9W0E9h3m6zrSc9H6m9so,1545
|
|
|
7
7
|
camel/agents/_types.py,sha256=GGpZ9FGq_SGla_Vz-YcYW7KMQzwE8lfM4Ga0QaGzKxk,1423
|
|
8
8
|
camel/agents/_utils.py,sha256=Nw63FXGoyshllqcTmSTNjIFO7hi4rfENGn-gfne4yOo,6228
|
|
9
9
|
camel/agents/base.py,sha256=c4bJYL3G3Z41SaFdMPMn8ZjLdFiFaVOFO6EQIfuCVR8,1124
|
|
10
|
-
camel/agents/chat_agent.py,sha256=
|
|
10
|
+
camel/agents/chat_agent.py,sha256=hd47ZXj0Hh0_5EI1T0pkS_lHt0h5M9iY9Ju3T22Yt_I,48036
|
|
11
11
|
camel/agents/critic_agent.py,sha256=qFVlHlQo0CVgmPWfWYLT8_oP_KyzCLFsQw_nN_vu5Bs,7487
|
|
12
12
|
camel/agents/deductive_reasoner_agent.py,sha256=6BZGaq1hR6hKJuQtOfoYQnk_AkZpw_Mr7mUy2MspQgs,13540
|
|
13
13
|
camel/agents/embodied_agent.py,sha256=XBxBu5ZMmSJ4B2U3Z7SMwvLlgp6yNpaBe8HNQmY9CZA,7536
|
|
@@ -82,8 +82,8 @@ camel/datahubs/__init__.py,sha256=1a8fRuzgirO2pHtPnuisZ76iF_AN9GxMFq9gwFKWE5I,90
|
|
|
82
82
|
camel/datahubs/base.py,sha256=4QKWiJaeL5ReQpyTAbOtzHs-2CzAYbVyoMngYwdpZGU,4357
|
|
83
83
|
camel/datahubs/huggingface.py,sha256=m1LDBv9ESNQINfiZdBpuVD5Zr1_iZqo-5LBYHXHhXw8,14853
|
|
84
84
|
camel/datahubs/models.py,sha256=tGb9OP_aomIhnwc0VapJjTg9PmyV_QCp5to9sABXF0Y,978
|
|
85
|
-
camel/datasets/__init__.py,sha256=
|
|
86
|
-
camel/datasets/base.py,sha256=
|
|
85
|
+
camel/datasets/__init__.py,sha256=XurV8ZviglsSFH8aUDKYNfSftWr-j2WT8TOxr_iXI-M,859
|
|
86
|
+
camel/datasets/base.py,sha256=QwROpodon363eE2h7Zm5DYOOhrRdgM6Rnn7dgIS4bVk,22795
|
|
87
87
|
camel/embeddings/__init__.py,sha256=YKCFO_YVY-x4A4uWmRuoIEtltrilBmC17DkCcK4zSj8,1263
|
|
88
88
|
camel/embeddings/base.py,sha256=mxqFkWh2AfbxuVKPOqVx16fCznmuSh9QXGjaEeZHvoY,2190
|
|
89
89
|
camel/embeddings/jina_embedding.py,sha256=6aakojtsJ6KLp3nqYLhEOtoFm2shoXlRzxb1YYN_uwo,6623
|
|
@@ -93,7 +93,7 @@ camel/embeddings/openai_embedding.py,sha256=9kJBKUWkjEyxtn50V4MDjuOT2syIwWEnZeEH
|
|
|
93
93
|
camel/embeddings/sentence_transformers_embeddings.py,sha256=E7a8lN50CtDBsFO-NOFQ6qfCnbH41O0_kTTg7dG3sOo,2724
|
|
94
94
|
camel/embeddings/vlm_embedding.py,sha256=HZFdcz1YzkFPzMj45_jaCVmDQJyccoXN561aLWlrYmo,5497
|
|
95
95
|
camel/environments/__init__.py,sha256=c2NsLuRbuqDftBSfw9pHMPQW98E0-py2n5AvTZvS74E,767
|
|
96
|
-
camel/environments/base.py,sha256=
|
|
96
|
+
camel/environments/base.py,sha256=2JhcUJMJhujsS8Cz2-HUxYEiFMbICtGMYKcqukftTTE,17909
|
|
97
97
|
camel/extractors/__init__.py,sha256=nrEI35-70NGHk-Y7jvyc4i0f1NlpJArVBqAmcfpaBng,811
|
|
98
98
|
camel/extractors/base.py,sha256=3jvuZpq27nlADDCX3GfubOpeb_zt-E9rzxF3x4lYm8s,10404
|
|
99
99
|
camel/extractors/python_strategies.py,sha256=k8q4BIAhPZnCSN2LqPaZVrhF56y3Y4cZ6ddn79jcIXE,7825
|
|
@@ -341,7 +341,7 @@ camel/verifiers/__init__.py,sha256=p6UEyvaOlwUQaFACGB4C07fL1xSnpTouElt19YRuneQ,9
|
|
|
341
341
|
camel/verifiers/base.py,sha256=efWZV9g58IHzJ24U4zr109y34CaAi8tV9WZPMCzP3YI,12017
|
|
342
342
|
camel/verifiers/models.py,sha256=hC6m_YxEX-mqi_tkCNZHZWLBWf04ZTyv5vfKR-BEyU4,2818
|
|
343
343
|
camel/verifiers/python_verifier.py,sha256=bj-UGxeJTZzxVVa3a8IEQ1lNOpSaaW3JdGnUEoPeQD0,7519
|
|
344
|
-
camel_ai-0.2.
|
|
345
|
-
camel_ai-0.2.
|
|
346
|
-
camel_ai-0.2.
|
|
347
|
-
camel_ai-0.2.
|
|
344
|
+
camel_ai-0.2.29.dist-info/METADATA,sha256=n78BBxySRMo1ZRH_6VfJUDUuyTEMioYbJGOtl7B7tWc,37988
|
|
345
|
+
camel_ai-0.2.29.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
346
|
+
camel_ai-0.2.29.dist-info/licenses/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
|
|
347
|
+
camel_ai-0.2.29.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|