Skip to main content

Agent Types

ADK-TS provides two main agent types:

LlmAgent

Direct agent with tools and instructions. Best for specialized tasks.

AgentBuilder

Composite agent that coordinates multiple sub-agents. Best for complex workflows.

Strategy Sentinel Agent

A comprehensive example that monitors vault strategies and manages risk.

Agent Definition

src/agents/sub-agents/strategy-sentinel-agent/agent.ts

Chat Agent for Users

A user-facing agent that helps users interact with the vault.
src/agents/sub-agents/chat-agent/agent.ts

Telegram Agent

An agent that sends notifications to Telegram channels.
src/agents/telegram-agent/agent.ts

Yield Generator Agent

A simple agent that accrues interest to the pool.
src/agents/sub-agents/yield-generator-agent/agent.ts

Agent Instructions Best Practices

1. Clear Role Definition

Define the agent’s role and responsibilities clearly:

2. Tool Documentation

Document available tools within the instruction:

3. Behavioral Rules

Set clear behavioral guidelines:

4. Security Constraints

Define security and privacy boundaries:

Testing Agents

Manual Testing

Integration Testing

Agent Lifecycle

src/index.ts

Next Steps

Tools & Functions

Learn how to create custom tools for your agents

Automation

Set up automated agent execution with cron jobs

ADK-TS Integration

Deep dive into ADK-TS integration patterns

API Reference

Explore the complete agent API documentation