@@ -24,7 +24,7 @@ def __init__(
24
24
name (str): name of the agent
25
25
system_message (str): system message to be sent to the agent
26
26
work_dir (str): working directory for the agent
27
- human_input_mode (bool ): whether to ask for human inputs every time a message is received.
27
+ human_input_mode (str ): whether to ask for human inputs every time a message is received.
28
28
Possible values are "ALWAYS", "TERMINATE", "NEVER".
29
29
(1) When "ALWAYS", the agent prompts for human input every time a message is received.
30
30
Under this mode, the conversation stops when the human input is "exit",
@@ -34,12 +34,12 @@ def __init__(
34
34
(3) When "NEVER", the agent will never prompt for human input. Under this mode, the conversation stops
35
35
when the number of auto reply reaches the max_consecutive_auto_reply or or when is_termination_msg is True.
36
36
max_consecutive_auto_reply (int): the maximum number of consecutive auto replies.
37
- default: None (no limit provided, class attribute MAX_CONSECUTIVE_AUTO_REPLY will be used as the limit in this case).
37
+ default to None (no limit provided, class attribute MAX_CONSECUTIVE_AUTO_REPLY will be used as the limit in this case).
38
38
The limit only plays a role when human_input_mode is not "ALWAYS".
39
39
is_termination_msg (function): a function that takes a message and returns a boolean value.
40
40
This function is used to determine if a received message is a termination message.
41
- config (dict ): other configurations .
42
-
41
+ use_docker (bool ): whether to use docker to execute the code .
42
+ **config (dict): other configurations.
43
43
"""
44
44
super ().__init__ (name , system_message )
45
45
self ._work_dir = work_dir
0 commit comments