Philosophical Bits
We believe the essence of intelligence emerges from its dynamic interactions with the external environment, where the use of various tools becomes a pivotal factor in its development and manifestation. TheEmbodiedAgent()
in CAMEL is an advanced conversational agent that leverages code interpreters and tool agents (e.g., HuggingFaceToolAgent()
) to execute diverse tasks efficiently. This agent represents a blend of advanced programming and AI capabilities, and is able to interact and respond within a dynamic environment.
Quick Start
Letโs first play with aChatAgent
instance by simply initialize it with a system message and interact with user messages.
๐น Step 0: Preparations
Setting Up API Keys
Youโll need to set up your API keys for OpenAI.๐น Step 1: Define the Role
We first need to set up the necessary information.meta_dict
and role_type
will be used to generate the system message.
๐น Step 2: Initialize the Agent ๐ซ
Based on the system message, we are ready to initialize our embodied agent.tool_agents
and code_interpreter
are None
, and the underlying code interpreter is using the SubProcessInterpreter()
, which handles the execution of code in Python and Bash within a subprocess.