Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

release: version 0.2.32, revert KnowNo (#1894)

Wendong-Fan1566d0317728
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 5471b3c14..4eadce8da 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -26,7 +26,7 @@ body:
attributes:
label: What version of camel are you using?
description: Run command `python3 -c 'print(__import__("camel").__version__)'` in your shell and paste the output here.
- placeholder: E.g., 0.2.31
+ placeholder: E.g., 0.2.32
validations:
required: true
diff --git a/camel/__init__.py b/camel/__init__.py
index 342e2e5df..b9d86027d 100644
--- a/camel/__init__.py
+++ b/camel/__init__.py
@@ -14,7 +14,7 @@
from camel.logger import disable_logging, enable_logging, set_log_level
-__version__ = '0.2.31'
+__version__ = '0.2.32'
__all__ = [
'__version__',
diff --git a/camel/agents/chat_agent.py b/camel/agents/chat_agent.py
index 231d0ba2f..c8952fb2e 100644
--- a/camel/agents/chat_agent.py
+++ b/camel/agents/chat_agent.py
@@ -446,7 +446,6 @@ class ChatAgent(BaseAgent):
self,
input_message: Union[BaseMessage, str],
response_format: Optional[Type[BaseModel]] = None,
- reason_params: Optional[Dict[str, Any]] = None,
) -> ChatAgentResponse:
r"""Executes a single step in the chat session, generating a response
to the input message.
@@ -459,13 +458,6 @@ class ChatAgent(BaseAgent):
model defining the expected structure of the response. Used to
generate a structured response if provided. (default:
:obj:`None`)
- reason_params (Optional[Dict[str, Any]], optional): A dictionary
- containing the parameters for the reasoning step.
- Argument `choices` is the number of choices/candidates to
- consider.
- Argument `threshold` is the threshold for the probability of
- the choices.
- (default: :obj:`None`)
Returns:
ChatAgentResponse: Contains output messages, a termination status
@@ -478,9 +470,6 @@ class ChatAgent(BaseAgent):
role_name="User", content=input_message
)
- # Inject thinking steps
- input_message = self._update_reasoning(input_message, reason_params)
-
# Add user input to memory
self.update_memory(input_message, OpenAIBackendRole.USER)
@@ -522,47 +511,6 @@ class ChatAgent(BaseAgent):
response, tool_call_records, num_tokens, external_tool_call_request
)
- def _update_reasoning(
- self,
- input_message: BaseMessage,
- reason_params: Optional[Dict[str, Any]] = None,
- ) -> BaseMessage:
- r"""Updates the input message to include reasoning instructions and
- adds human interaction capability.
-
- Args:
- input_message (BaseMessage): The message to be updated with
- reasoning instructions.
- reason_params (Optional[Dict[str, Any]], optional): Parameters for
- the reasoning process.
-
- Returns:
- BaseMessage: The updated message with reasoning instructions.
- """
- if reason_params is None:
- return input_message
- choices = reason_params.get("choices", 3)
- threshold = reason_params.get("threshold", 0.5)
-
- input_message.content += f"""First, come up with potential {choices}
- choices/candidates.
- Next, assign a probability/credibility between 0 and 1 to each choice
- (make sure they add up to 1).
- Finally, if only one choice has a probability/credibility greater than
- {threshold}, continue with that choice.
- Otherwise, call tool `ask_human_via_console` to ask the user to decide
- which one to continue with, give user the probability/credibility of
- all choices, and the reason for each choice.
- """
-
- # Add tools to agent
- from camel.toolkits.human_toolkit import HumanToolkit
-
- human_toolkit = HumanToolkit()
- self.add_tool(human_toolkit.ask_human_via_console)
-
- return input_message
-
@property
def chat_history(self) -> List[OpenAIMessage]:
openai_messages, _ = self.memory.get_context()
diff --git a/docs/conf.py b/docs/conf.py
index 4758b8273..36e772ca4 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -27,7 +27,7 @@ sys.path.insert(0, os.path.abspath('..'))
project = 'CAMEL'
copyright = '2024, CAMEL-AI.org'
author = 'CAMEL-AI.org'
-release = '0.2.31'
+release = '0.2.32'
html_favicon = (
'https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'
diff --git a/docs/key_modules/loaders.md b/docs/key_modules/loaders.md
index 3ff7c5ffe..e93980060 100644
--- a/docs/key_modules/loaders.md
+++ b/docs/key_modules/loaders.md
@@ -340,14 +340,14 @@ response = jina_reader.read_content("https://docs.camel-ai.org/")
print(response)
```
```markdown
->>>Welcome to CAMEL’s documentation! — CAMEL 0.2.31 documentation
+>>>Welcome to CAMEL’s documentation! — CAMEL 0.2.32 documentation
===============
[Skip to main content](https://docs.camel-ai.org/#main-content)
Back to top Ctrl+K
- [![Image 1](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png) ![Image 2](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png)CAMEL 0.2.31](https://docs.camel-ai.org/#)
+ [![Image 1](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png) ![Image 2](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png)CAMEL 0.2.32](https://docs.camel-ai.org/#)
Search Ctrl+K
diff --git a/pyproject.toml b/pyproject.toml
index 110b8e3de..fdd63fc5c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "camel-ai"
-version = "0.2.31"
+version = "0.2.32"
description = "Communicative Agents for AI Society Study"
authors = [{ name = "CAMEL-AI.org" }]
requires-python = ">=3.10,<3.13"
diff --git a/uv.lock b/uv.lock
index fbfe69205..dd206347e 100644
--- a/uv.lock
+++ b/uv.lock
@@ -510,7 +510,7 @@ wheels = [
[[package]]
name = "camel-ai"
-version = "0.2.31"
+version = "0.2.32"
source = { editable = "." }
dependencies = [
{ name = "colorama" },