Skip to content

Commit 25e0fc2

Browse files
authored
Upgarde camel-ai to 0.2.70 and fix #113 (#149)
## Description upgrage the camel-ai to 0.2.70 and fix the 400 error issue #113 ## Checklist Go over all the following points, and put an `x` in all the boxes that apply. - [x] I have read the [CONTRIBUTION](https://github.com/camel-ai/oasis/blob/master/CONTRIBUTING.md) guide (**required**) - [x] I have linked this PR to an issue using the Development section on the right sidebar or by adding `Fixes #issue-number` in the PR description (**required**) - [x] I have checked if any dependencies need to be added or updated in `pyproject.toml` - [x] I have updated the tests accordingly (*required for a bug fix or a new feature*) - [x] I have updated the documentation if needed: - [ ] I have added examples if this is a new feature **Note:** If you are developing a new action for `SocialAgent`, please review the checklist below and mark all applicable items with an `x`. If you're not adding a new action, you can skip this section. - [ ] I have added the new action to `ActionType` in [`typing.py`](https://github.com/camel-ai/oasis/blob/main/oasis/social_platform/typing.py). - [ ] I have added a corresponding test or a similar function, as shown in [`test_user_create_post.py`](https://github.com/camel-ai/oasis/blob/main/test/infra/database/test_user_create_post.py). - [ ] I have included the new `ActionType` in both [`test_action_docstring.py`](https://github.com/camel-ai/oasis/blob/main/test/agent/test_action_docstring.py) and [`test_twitter_user_agent_all_actions.py`](https://github.com/camel-ai/oasis/blob/main/test/agent/test_twitter_user_agent_all_actions.py). - [ ] I have documented the new action in [`actions.mdx`](https://github.com/camel-ai/oasis/blob/main/docs/key_modules/actions.mdx); the Mintlify GitHub app will deploy the changes automatically. If you are unsure about any of these, don't hesitate to ask. We are here to help!
2 parents 253d075 + 8eb0e71 commit 25e0fc2

File tree

4 files changed

+537
-239
lines changed

4 files changed

+537
-239
lines changed

oasis/social_agent/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(self,
6666
agent_graph: "AgentGraph" = None,
6767
available_actions: list[ActionType] = None,
6868
tools: Optional[List[Union[FunctionTool, Callable]]] = None,
69-
single_iteration: bool = True,
69+
max_iteration: int = 1,
7070
interview_record: bool = False):
7171
self.social_agent_id = agent_id
7272
self.user_info = user_info
@@ -107,7 +107,7 @@ def __init__(self,
107107
model=model,
108108
scheduling_strategy='random_model',
109109
tools=all_tools,
110-
single_iteration=single_iteration)
110+
max_iteration=max_iteration)
111111
self.interview_record = interview_record
112112
self.agent_graph = agent_graph
113113
self.test_prompt = (

0 commit comments

Comments
 (0)