Skip to main content

EmbodiedAgent

Class for managing conversations of CAMEL Embodied Agents. Parameters:
  • system_message (BaseMessage): The system message for the chat agent.
  • model (BaseModelBackend, optional): The model backend to use for generating responses. (default: :obj:OpenAIModel with GPT_4O_MINI)
  • message_window_size (int, optional): The maximum number of previous messages to include in the context window. If None, no windowing is performed. (default: :obj:None)
  • tool_agents (List[BaseToolAgent], optional): The tools agents to use in the embodied agent. (default: :obj:None)
  • code_interpreter (BaseInterpreter, optional): The code interpreter to execute codes. If code_interpreter and tool_agent are both None, default to SubProcessInterpreter. If code_interpreter is None and tool_agents is not None, default to InternalPythonInterpreter. (default: :obj:None)
  • verbose (bool, optional): Whether to print the critic’s messages.
  • logger_color (Any): The color of the logger displayed to the user. (default: :obj:Fore.MAGENTA)

init

_set_tool_agents

_get_tool_agents_prompt

Returns: str: The action space prompt.

get_tool_agent_names

Returns: List[str]: The names of tool agents.

step

Performs a step in the conversation. Parameters:
  • input_message (BaseMessage): The input message.
Returns: ChatAgentResponse: A struct containing the output messages, a boolean indicating whether the chat session has terminated, and information about the chat session.