SDK Examples
Example: Local Agent with ChatService
The basic direction for explicitly injecting ChatService into a local Agent
Example: Local Agent with ChatService
import { Agent, ChatService } from "@downcity/agent";
const agent = new Agent({
id: "repo-helper",
path: "/path/to/project",
tools: {},
services: [
new ChatService({
telegram: {
botToken: process.env.TELEGRAM_BOT_TOKEN!,
},
}),
],
});If you want the SDK process itself to own chat-service responsibility, this is a very natural direction.