You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: autogen/agentchat/contrib/captainagent/captainagent.py
+20-19Lines changed: 20 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -149,25 +149,26 @@ def __init__(
149
149
description: str|None=DEFAULT_DESCRIPTION,
150
150
**kwargs: Any,
151
151
):
152
-
"""Args:
153
-
name (str): agent name.
154
-
system_message (str): system message for the ChatCompletion inference.
155
-
Please override this attribute if you want to reprogram the agent.
156
-
llm_config (LLMConfig or dict or False): llm inference configuration.
157
-
Please refer to [OpenAIWrapper.create](https://docs.ag2.ai/latest/docs/api-reference/autogen/OpenAIWrapper/#autogen.OpenAIWrapper.create) for available options.
158
-
is_termination_msg (function): a function that takes a message in the form of a dictionary
159
-
and returns a boolean value indicating if this received message is a termination message.
160
-
The dict can contain the following keys: "content", "role", "name", "function_call".
161
-
max_consecutive_auto_reply (int): the maximum number of consecutive auto replies.
162
-
default to None (no limit provided, class attribute MAX_CONSECUTIVE_AUTO_REPLY will be used as the limit in this case).
163
-
The limit only plays a role when human_input_mode is not "ALWAYS".
164
-
agent_lib (str): the path or a JSON file of the agent library for retrieving the nested chat instantiated by CaptainAgent.
165
-
tool_lib (str): the path to the tool library for retrieving the tools used in the nested chat instantiated by CaptainAgent.
166
-
nested_config (dict): the configuration for the nested chat instantiated by CaptainAgent.
167
-
A full list of keys and their functionalities can be found in [docs](https://docs.ag2.ai/latest/docs/user-guide/reference-agents/captainagent).
168
-
agent_config_save_path (str): the path to save the generated or retrieved agent configuration.
system_message (str): system message for the ChatCompletion inference.\n
156
+
Please override this attribute if you want to reprogram the agent.\n
157
+
llm_config (LLMConfig or dict or False): llm inference configuration.\n
158
+
Please refer to [OpenAIWrapper.create](https://docs.ag2.ai/latest/docs/api-reference/autogen/OpenAIWrapper/#autogen.OpenAIWrapper.create) for available options.\n
159
+
is_termination_msg (function): a function that takes a message in the form of a dictionary\n
160
+
and returns a boolean value indicating if this received message is a termination message.\n
161
+
The dict can contain the following keys: "content", "role", "name", "function_call".\n
162
+
max_consecutive_auto_reply (int): the maximum number of consecutive auto replies.\n
163
+
default to None (no limit provided, class attribute MAX_CONSECUTIVE_AUTO_REPLY will be used as the limit in this case).\n
164
+
The limit only plays a role when human_input_mode is not "ALWAYS".\n
165
+
agent_lib (str): the path or a JSON file of the agent library for retrieving the nested chat instantiated by CaptainAgent.\n
166
+
tool_lib (str): the path to the tool library for retrieving the tools used in the nested chat instantiated by CaptainAgent.\n
167
+
nested_config (dict): the configuration for the nested chat instantiated by CaptainAgent.\n
168
+
A full list of keys and their functionalities can be found in [docs](https://docs.ag2.ai/latest/docs/user-guide/reference-agents/captainagent).\n
169
+
agent_config_save_path (str): the path to save the generated or retrieved agent configuration.\n
170
+
**kwargs (dict): Please refer to other kwargs in\n
0 commit comments