Base Agent

The Base Agent is the foundation of all agents in AgoraAI. It provides core functionality and interfaces that all specialized agents inherit and build upon.

Overview

from agoraai.agent import Agent

agent = Agent(
    name="MyAgent",
    agent_type="custom",
    capabilities=["process", "analyze"]
)

Core Properties

Required Properties

  • name: Unique identifier for the agent

  • agent_type: Type classification of the agent

  • capabilities: List of agent capabilities

Optional Properties

  • metadata: Additional agent information

  • state: Current agent state

  • resource_limits: Resource usage constraints

Agent Lifecycle

Core Methods

Request Handling

Task Execution

State Management

Event System

Event Registration

Custom Events

Resource Management

Setting Limits

Monitoring Usage

Error Handling

Basic Error Handling

Last updated