eigent/backend/app/agent
bytecii 83afbc2686
fix: let agent load skill before execution (#1398)
Co-authored-by: bytecii <bytecii@users.noreply.github.com>
2026-03-01 19:45:07 -08:00
..
factory fix: search tool add agent name for browser agent 2026-02-27 16:53:14 +08:00
toolkit feat: add search toolkit to non-browser agents (#1364) 2026-02-26 18:48:54 +08:00
__init__.py refactor: extract event_loop_utils module and improve agent response handling (#999) 2026-02-03 22:15:36 +08:00
agent_model.py Revert "feat: add model type autocomplete with api based suggestions and plat…" (#1352) 2026-02-24 02:02:46 +08:00
listen_chat_agent.py feat: browser_external_cdp (#696) 2026-02-24 00:18:08 +08:00
prompt.py fix: let agent load skill before execution (#1398) 2026-03-01 19:45:07 -08:00
README.md refactor: rename social media and add pre-commit (#1113) 2026-02-01 23:53:41 +08:00
tools.py refactor: move toolkit from utils to agent module (#1045) (#1171) 2026-02-06 15:22:21 -08:00
utils.py refactor: refactor agent and modify sys prompt for terminal ls (#1106) 2026-01-30 17:09:08 +08:00

Agent Module

This module provides the agent infrastructure for eigent, built on top of the CAMEL framework.

Architecture Overview

graph TB
    subgraph "Core"
        AM["agent_model.py<br/>(Core Factory)"]
        LCA["listen_chat_agent.py<br/>(Base Agent Class)"]
        TOOLS["tools.py<br/>(Toolkit Loaders)"]
        PROMPT["prompt.py<br/>(System Prompts)"]
    end

    subgraph "Factory"
        BROWSER["browser.py"]
        DEV["developer.py"]
        DOC["document.py"]
        MODAL["multi_modal.py"]
        MCP["mcp.py"]
        QC["question_confirm.py"]
        SOCIAL["social_media.py"]
        SUMMARY["task_summary.py"]
    end

    subgraph "External"
        CAMEL["CAMEL Framework"]
        TASK["Task Service"]
        TOOLKITS["Toolkits"]
    end

    AM --> LCA
    AM --> CAMEL
    AM --> TASK

    LCA --> CAMEL
    LCA --> TASK

    BROWSER --> AM
    BROWSER --> PROMPT
    BROWSER --> TOOLKITS

    DEV --> AM
    DEV --> PROMPT
    DEV --> TOOLKITS

    DOC --> AM
    DOC --> PROMPT
    DOC --> TOOLKITS

    MODAL --> AM
    MODAL --> PROMPT
    MODAL --> TOOLKITS

    MCP --> LCA
    MCP --> TOOLS
    MCP --> PROMPT

    QC --> AM
    QC --> PROMPT

    SOCIAL --> AM
    SOCIAL --> PROMPT
    SOCIAL --> TOOLKITS

    SUMMARY --> AM
    SUMMARY --> PROMPT

File Descriptions

File Purpose
agent_model.py Core factory function for creating agents with event loop management
listen_chat_agent.py Base agent class extending CAMEL's ChatAgent with task tracking
tools.py Toolkit and MCP tools loader utilities
prompt.py System prompts for all 8 agent types

Factory Files

File Agent Type
browser.py Senior Research Analyst
developer.py Lead Software Engineer
document.py Documentation Specialist
multi_modal.py Creative Content Specialist
mcp.py MCP Server Agent
question_confirm.py Question Confirmation
social_media.py Social Media Manager
task_summary.py Task Summarizer