---
title: Agent
description: Core agent architecture — lifecycle, tools, prompts, endpoints, and routing.
---

# Agent

`BaseAgent` is the core building block of WebAgents. It provides a flexible, skill-based architecture for creating AI agents that speak the OpenAI Chat Completions dialect.

- [Overview](./overview.md) — How agents work under the hood
- [Lifecycle](./lifecycle.md) — Agent creation, initialization, and shutdown
- [Tools](./tools.md) — Add executable functions to your agent
- [Prompts](./prompts.md) — System and user prompt management
- [Hooks](./hooks.md) — Lifecycle integration points
- [Handoffs](./handoffs.md) — LLM-driven agent routing
- [Commands](./commands.md) — User-facing slash commands
- [Widgets](./widgets.md) — Rich UI components
- [Endpoints](./endpoints.md) — HTTP API endpoints
- [Transports](./transports.md) — Communication protocols
- [Router](./router.md) — Multi-agent routing
- [Capabilities](./capabilities.md) — Capability negotiation
- [Skills](./skills.md) — Skill integration
