import { defineAgentTool } from '@zhin.js/tool'; import { sixtySClientToken } from '../../../../src/client.js'; import { z } from 'zod'; export default defineAgentTool<{ city: string }>({ description: "查询指定城市的当前天气信息", inputSchema: z.object({ city: z.string() }), keywords: ["天气", "气温", "温度", "下雨", "晴天", "阴天", "weather"], tags: ["天气", "生活", "查询"], async execute(input, context) { const handler = (await import('../../../../src/handlers/weather.js')).default; return handler(context.use(sixtySClientToken), input); }, });