camel-ai 0.2.0__py3-none-any.whl → 0.2.3a0__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.

@@ -1,125 +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
- from camel.prompts import TextPrompt
15
-
16
- # ruff: noqa: E501
17
- CREATE_NODE_PROMPT = TextPrompt(
18
- """You need to use the given information to create a new workforce for solving the category of tasks of the given one.
19
- The content of the given task is:
20
-
21
- {content}
22
-
23
- Following is the information of the existing workforces. The format is <ID>: <description>.
24
-
25
- {child_nodes_info}
26
-
27
- You must return the following information:
28
- 1. The role of the agent working in the workforce, e.g. "programmer", "researcher", "product owner". This should be enclosed within the <role></role> tags.
29
- 2. The system message that will be sent to the agent, enclosed within the <system></system> tags.
30
- 3. The description of the workforce, enclosed within the <description></description> tags.
31
-
32
- Also, all of the info should be enclosed within a <workforce> tag. For example:
33
-
34
- <workforce>
35
- <role>programmer</role>
36
- <system>You are a python programmer.</system>
37
- <description>a python programmer.</description>
38
- </workforce>
39
-
40
- You should ensure that the workforce created is capable of solving all the tasks in the same category as the given one, don't make it too specific.
41
- Also, there should be no big overlap between the new workforce and the existing ones.
42
- The information returned should be concise and clear. Each pair of tag can only appear once.
43
- """
44
- )
45
-
46
- ASSIGN_TASK_PROMPT = TextPrompt(
47
- """You need to assign the task to a workforce.
48
- The content of the task is:
49
-
50
- {content}
51
-
52
- Following is the information of the existing workforces. The format is <ID>: <description>.
53
-
54
- {child_nodes_info}
55
-
56
- You must return the ID of the workforce that you think is most capable of doing the task. The ID should be enclosed within the <id></id> tags, for example:
57
-
58
- <id>1</id>
59
- """
60
- )
61
-
62
- PROCESS_TASK_PROMPT = TextPrompt(
63
- """You need to process the task. It is recommended that tools be actively called when needed.
64
- The content of the task is:
65
-
66
- {content}
67
-
68
- The type of the task is:
69
-
70
- {type}
71
-
72
- To process this task, here is some information on several dependent tasks:
73
-
74
- {dependency_task_info}
75
-
76
- You must return the result of the given task. The result should be enclosed within the <result></result> tags, for example:
77
-
78
- <result>Today, you requested information about the current weather conditions. The weather today in New York City is partly cloudy with a high of 75°F (24°C) and a low of 59°F (15°C). There is a 10 percent chance of rain with winds coming from the northeast at 5 mph. Humidity levels are at 60%. It's a perfect day to spend some time outdoors, perhaps in one of the city's beautiful parks.</result>
79
-
80
- if you are not able to process the task, you need to return <failed></failed> tags.
81
- """
82
- )
83
-
84
-
85
- ROLEPLAY_PROCESS_TASK_PROMPT = TextPrompt(
86
- """You need to process the task. It is recommended that tools be actively called when needed.
87
- The content of the task is:
88
-
89
- {content}
90
-
91
- The type of the task is:
92
-
93
- {type}
94
-
95
- To process this task, here is some information on several dependent tasks:
96
-
97
- {dependency_task_info}
98
-
99
- You must return the result of the given task.
100
-
101
- """
102
- )
103
-
104
- # TODO: improve prompt quality
105
- ROLEPLAY_SUMMERIZE_PROMPT = TextPrompt(
106
- """You need to process the task.
107
- The content of the task is:
108
-
109
- {content}
110
-
111
- The type of the task is:
112
-
113
- {type}
114
-
115
- To process this task, here are the chat history of AI user and AI assistant:
116
-
117
- {chat_history}
118
-
119
- You must summerize the chat history of the return the result of the given task. The result should be enclosed within the <result></result> tags, for example:
120
-
121
- <result>Today, you requested information about the current weather conditions. The weather today in New York City is partly cloudy with a high of 75°F (24°C) and a low of 59°F (15°C). There is a 10 percent chance of rain with winds coming from the northeast at 5 mph. Humidity levels are at 60%. It's a perfect day to spend some time outdoors, perhaps in one of the city's beautiful parks.</result>
122
-
123
- if you are not able to process the task, you need to return <failed></failed> tags.
124
- """
125
- )