LLamaIndexConversableAgent

LLamaIndexConversableAgent(**kwargs)

(In preview) A class for generic conversable agents which can be configured as assistant or user proxy.

After receiving each message, the agent will send a reply to the sender unless the msg is a termination msg. For example, AssistantAgent and UserProxyAgent are subclasses of this class, configured with different default settings.

To modify auto reply, override generate_reply method. To disable/enable human response in every turn, set human_input_mode to “NEVER” or “ALWAYS”. To modify the way to get human input, override get_human_input method. To modify the way to execute code blocks, single code block, or function call, override execute_code_blocks, run_code, and execute_function methods respectively.

Parameters:
NameDescription
**kwargsPlease refer to other kwargs in ConversableAgent.

Class Attributes

DEFAULT_CONFIG



DEFAULT_SUMMARY_METHOD



DEFAULT_SUMMARY_PROMPT



MAX_CONSECUTIVE_AUTO_REPLY



a_initiate_chats