Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

How to customize the Intelligentsia roles and tasks in CAMEL-AI?

2025-08-19 257

Customizing CAMEL-AI intelligences roles and tasks is mainly implemented through Python code as follows:

  1. Defining Intelligent Body Roles: Create an intelligent body using the ChatAgent class and set up system prompts
    from camel.agents import ChatAgent
    sys_msg = BaseMessage.make_assistant_message(role_name="Assistant", content="Your role description")
    agent = ChatAgent(system_message=sys_msg, model=model)
  2. task sth.: Trigger specific tasks with user messages
    user_msg = "Your task instruction"
    response = agent.step(user_msg)
  3. Extended functionality: Toolset can be loaded for intelligences
    from camel.toolkits import SearchToolkit
    tools = [*SearchToolkit().get_tools()]
    agent = ChatAgent(system_message=sys_msg, model=model, tools=tools)

The system supports a variety of predefined roles (e.g., researcher, analyst, educator, etc.) as well as fully customizable roles. By adjusting the content of system prompts, the behavioral patterns and areas of expertise of the intelligences can be finely controlled.

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish