MultimodalConversableAgent

class MultimodalConversableAgent(ConversableAgent)

__init__

def __init__(name: str,
             system_message: Optional[Union[str, list]] = DEFAULT_LMM_SYS_MSG,
             is_termination_msg: str = None,
             *args,
             **kwargs)

Arguments:

  • name str - agent name.
  • system_message str - system message for the OpenAIWrapper inference. Please override this attribute if you want to reprogram the agent.
  • **kwargs dict - Please refer to other kwargs in ConversableAgent.

update_system_message

def update_system_message(system_message: Union[dict, list, str])

Update the system message.

Arguments:

  • system_message str - system message for the OpenAIWrapper inference.

generate_oai_reply

def generate_oai_reply(
    messages: Optional[list[dict]] = None,
    sender: Optional[Agent] = None,
    config: Optional[OpenAIWrapper] = None
) -> tuple[bool, Union[str, dict, None]]

Generate a reply using autogen.oai.