Commit Graph

5 Commits

Author SHA1 Message Date
dzq 4d1e218437 feat: 添加应用配置文件,设置环境变量和日志路径 2025-12-12 11:08:38 +08:00
dzq bddd42a6c0 feat: 更新服务器端口为7328,调整相关文档和示例 2025-12-12 10:59:51 +08:00
dzq 7be8cc973e feat: add goods tool for querying product information and integrate with multi-function agent
- Implemented goodsTool for querying product lists and details based on product ID.
- Added API methods for fetching product lists and single product information.
- Created Axios instance with request interceptors for handling API responses and errors.
- Updated multiFunctionAgent to include goodsTool for enhanced functionality.
- Defined types for API responses and pagination.
- Configured Vite for building the server with proper chunking and external dependencies.
2025-12-12 10:48:12 +08:00
dzq 28bab592de feat: Add Multi-Function Agent with Express API and tools
- Implemented Multi-Function Agent with capabilities for weather, time, calculator, file listing, and jokes.
- Created Express API for accessing the agent, including endpoints for generating responses, streaming, and testing tools.
- Added middleware for error handling, response formatting, and request validation.
- Defined schemas for request validation using Zod.
- Translated agent instructions and tool descriptions to Chinese for localization.
- Included README documentation for API usage and project structure.
2025-12-11 17:43:08 +08:00
dzq f3e5a0db54 feat: add multi-function agent with tools for weather, time, calculator, file listing, and jokes
- Created multiFunctionAgent to handle multiple user requests.
- Implemented tools for weather information, current time, basic arithmetic operations, file listing, and telling jokes.
- Added necessary schemas and execution logic for each tool.
- Set up main Mastra instance to include the new agent.
- Created a script to run the agent and test its functionality.
- Configured TypeScript settings for the project.
2025-12-11 15:18:09 +08:00