AgentSea

Concept

Concepts

The terms used across the AgentSea packages, with the class and package names the code uses.

Agents

An Agent is built from a config, a provider, a ToolRegistry and an optional memory store. The config holds the name, description, model, provider name, system prompt, tools and iteration limit.

Providers

A provider wraps one model API. Cloud providers are AnthropicProvider, OpenAIProvider and GeminiProvider.

Tools

A tool is an object with a name, a description, a Zod schema for its parameters, and an execute function. The Tool type is exported by the types package.

Memory

Memory stores conversation history for an agent. The core package has BufferMemory, which keeps the last N messages, and SummaryMemory, which keeps recent messages plus a summary of older ones.

Crews

A crew is a team of agents, each with a role. Create one with createCrew(config), add tasks with addTask, and run them with kickoff().

Package: @lov3kaizen/agentsea-crews

Guardrails

Guardrails check text on the way in (input) and on the way out (output). createGuardrailsEngine builds an engine from a list of guard settings.

Package: @lov3kaizen/agentsea-guardrails

Observability

The core package has a Logger, a MetricsCollector and a Tracer. Shared instances are exported as globalMetrics and globalTracer.