File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
examples/telegram-bot/src Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 11import { Telegraf } from "telegraf" ;
22import { setupHandlers } from "./handlers" ;
33import { PolkadotAgentKit } from "@polkadot-agent-kit/sdk" ;
4- import {
5- getChainByName ,
6- KnownChainId ,
7- getAllSupportedChains ,
8- } from "@polkadot-agent-kit/common" ;
94import {
105 ChatModelFactory ,
116 ChatModelOptions ,
127 ChatModelWithTools ,
138} from "./models" ;
14- import { BaseChatModel } from "@langchain/core/language_models/chat_models" ;
159
1610interface BotConfig {
1711 botToken : string ;
Original file line number Diff line number Diff line change 11import { Telegraf } from "telegraf" ;
22import { HumanMessage , SystemMessage } from "@langchain/core/messages" ;
3- import { DynamicStructuredTool , Tool } from "@langchain/core/tools" ;
3+ import { DynamicStructuredTool } from "@langchain/core/tools" ;
44import { ChatModelWithTools } from "./models" ;
55
66const SYSTEM_PROMPT = `I am a Telegram bot powered by PolkadotAgentKit. I can assist you with:
You can’t perform that action at this time.
0 commit comments