llava_agent
autogen.agentchat.contrib.llava_agent.LLaVAAgent
LLaVAAgent
(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 ChatCompletion inference. Please override this attribute if you want to reprogram the agent. Type: tuple[str, list] | None Default: ‘You are an AI agent and you can view images.‘ |
*args | |
**kwargs | Please refer to other kwargs in ConversableAgent. |