Skip to content

jundaychan/eino-agent-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

餐厅推荐助手

这是一个基于 Go-eino 开发的agent自主决策,使用tools的示例,包含前后端。

本项目完全由cursor开发,没有人类参与编写代码,只是提供提示词。

具体助手基于eino-example库二次开发,内容为餐厅推荐助手,能够帮助用户查询和推荐北京地区的餐厅及菜品信息。

功能特点

  • 餐厅信息查询和推荐
  • 菜品信息查询和推荐
  • 实时流式响应
  • 支持 SSE(Server-Sent Events)
  • 智能对话交互

环境要求

  • Go 1.16 或更高版本
  • 有效的 API 密钥(用于访问 GPT 服务)

安装步骤

  1. 克隆项目
git clone https://github.com/jundaychan/eino-agent-example.git
cd eino-agent-example
  1. 安装依赖
go mod download
  1. 配置环境变量
cp .env.example .env

然后编辑 .env 文件,填入您的实际配置:

  • ARK_API_KEY:您的 API 密钥
  • ARK_MODEL_NAME:使用的模型名称
  • BASE_URL:API 基础 URL
  1. 运行项目
go run main.go

服务将在 http://localhost:8080 启动

使用说明

  1. 访问 http://localhost:8080
  2. 输入您的查询,例如:
    • "推荐一家北京的火锅店"
    • "有什么好吃的川菜馆"
    • "附近有什么米其林餐厅"

注意事项

  • 目前仅支持北京地区的餐厅和菜品查询
  • 请确保在运行前正确配置环境变量
  • 不要将 .env 文件提交到版本控制系统中

许可证

MIT License

贡献指南

欢迎提交 Issue 和 Pull Request!

About

eino 的agent 的流式输出的案例,包含前端,支持使用tools、前端展示 tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors