multimodal_conversable_agent
autogen.agentchat.contrib.multimodal_conversable_agent.MultimodalConversableAgent
MultimodalConversableAgent
(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.
Name | Description |
---|---|
name | agent name. Type: str |
system_message | system message for the OpenAIWrapper inference. Please override this attribute if you want to reprogram the agent. Type: str | list | None Default: ‘You are a helpful AI assistant.‘ |
is_termination_msg | Type: str Default: None |
*args | |
**kwargs | Please refer to other kwargs in ConversableAgent. |
Class Attributes
DEFAULT_CONFIG
Instance Methods
update_system_message
Update the system message.
Parameters:Name | Description |
---|---|
system_message | system message for the OpenAIWrapper inference. Type: dict | list | str |