# Chef Michel ��

一个基于 Mastra 框架的专业中式料理厨师 AI 代理。

## 功能特点

- 🔥 精通八大菜系（川菜、粤菜、鲁菜、苏菜、浙菜、闽菜、湘菜、徽菜）
- 👨‍🍳 掌握各种中式烹饪技法
- 🍵 了解茶文化搭配和传统餐具摆盘
- 📚 分享中华美食文化和历史知识
- 💡 提供食谱推荐和改进建议

## 支持的 AI 模型

### 🇨🇳 智谱 AI (国内用户推荐)
国内可直接访问，无需代理或 VPN

## 安装和设置

### 1. 安装依赖
```bash
npm install
```

### 2. 环境变量设置

#### 使用智谱 AI
1. 访问 [智谱开放平台](https://open.bigmodel.cn/)
2. 注册账号并获取 API Key
3. 在 `.env` 文件中设置：

```bash
# .env
ZHIPU_API_KEY=your_zhipu_api_key_here
```

### 3. 运行项目

```bash
npm run dev
```

## 使用方法

```typescript
import { chefAgent } from "./src/mastra/agents/chefAgent.js";

// 与 Chef Michel 对话
const response = await chefAgent.generate([
  { 
    role: "user", 
    content: "能教我做一道简单的川菜吗？" 
  }
]);

console.log(response.text);
```

## 项目结构

```
chef_michel/
├── src/
│   ├── mastra/
│   │   └── agents/
│   │       └── chefAgent.ts          # 智谱 AI 版本
│   └── index.ts                      # 主入口文件
├── package.json
├── tsconfig.json
└── README.md
```

## 可用脚本

- `npm run dev` - 运行项目
- `npm run build` - 构建项目
- `npm start` - 运行构建后的项目

## 技术栈

- [Mastra](https://mastra.ai) - AI 代理框架
- [智谱 AI](https://open.bigmodel.cn/) - 国内 AI 模型
- [TypeScript](https://www.typescriptlang.org) - 类型安全的 JavaScript

## 许可证

ISC 