Add New Agent
Add New Agent
Agents in Beluga AI are specialized implementations that often embed a BaseAgent.
Steps
-
Create Agent Directory
pkg/agents/providers/<agent_type>/.
-
Implement Agent Code
- Create
pkg/agents/providers/<agent_type>/agent.go. - Embed
pkg/agents/base.BaseAgent(check current location of BaseAgent). - Implement the
Agentinterface methods.
- Create
-
Define Capabilities
- Does it support tools?
- Does it support memory?
- Configure these in the
Newfunction.
-
Register Agent
- Register in
pkg/agents/registry.go.
- Register in
-
Add Tests
- Unit tests for specific logic.
- Integration tests with mocked LLMs.
More from lookatitude/beluga-ai
go-framework
Go framework design patterns for Beluga AI v2. Use when designing package structure, registries, lifecycle, or creating new packages.
12go-interfaces
Go interface design with registry, middleware, and hooks for Beluga AI v2. Use when creating interfaces, extension contracts, or adding hooks/middleware.
8streaming-patterns
Go 1.23 iter.Seq2 streaming patterns for Beluga AI v2. Use when implementing streaming, transforms, or backpressure.
8doc-writing
Documentation writing patterns for Beluga AI v2. Use when creating package docs, tutorials, API guides, or teaching-oriented content.
7provider-implementation
Implementing providers for Beluga AI v2 registries. Use when creating LLM, embedding, vectorstore, voice, or any other provider.
7website-development
Website development patterns for the Beluga AI v2 documentation site. Use when building, styling, or adjusting website components, layouts, pages, and interactive elements — NOT for writing documentation content.
3