Suna 是一个完全开源的 AI 助手,可帮助您轻松完成实际任务。通过自然对话,Suna 成为您进行研究、数据分析和日常挑战的数字伴侣 — 将强大的功能与直观的界面相结合,了解您的需求并提供结果。
Suna 强大的工具包包括用于导航 Web 和提取数据的无缝浏览器自动化、用于文档创建和编辑的文件管理、Web 爬虫和扩展搜索功能、用于系统任务的命令行执行、网站部署以及与各种 API 和服务的集成。这些功能和谐地协同工作,使 Suna 能够解决您的复杂问题并通过简单的对话实现工作流程自动化!
源代码:github.com
Suna架构
Suna 由四个主要组件组成:
后端 API
Python/FastAPI 服务,通过 LiteLLM 处理 REST 端点、线程管理以及与 OpenAI、Anthropic 和其他公司的 LLM 集成。
前端
Next.js/React 应用程序提供带有聊天界面、仪表板等的响应式 UI。
代理 Docker
每个代理的隔离执行环境 - 具有浏览器自动化、代码解释器、文件系统访问、工具集成和安全功能。
Supabase 数据库
通过身份验证、用户管理、对话历史记录、文件存储、代理状态、分析和实时订阅处理数据持久性。
实践
可以到Suna官网进行实践:
发布一个任务:打开浏览器,并用bing寻找灵飞经简体字帖
效果还不错:
I'll help you search for "灵飞经简体字帖" (Lingfei Jing calligraphy in simplified Chinese) using Bing. Let me break this down into steps.
Creating a Task Plan
First, I'll create a todo list to organize our approach:
create-file
todo.md
Now that I've created our task plan, let's start by opening the browser and navigating to Bing to search for "灵飞经简体字帖".
Starting the Search Process
I'll first open the browser and navigate to Bing's search engine:
browser-navigate-to
I see that the browser has loaded Bing's search page. Now I'll search for "灵飞经简体字帖" by entering this search term in the search box.
Performing the Search
I'll input the search term in the search box:
browser-input-text
Now that I've entered the search term "灵飞经简体字帖" in the search box, I'll press Enter to perform the search:
browser-send-keys
Great! I can see that the search results for "灵飞经简体字帖" have loaded. Let me analyze what we've found and update our task list.
Analyzing Search Results
I can see several relevant results about 灵飞经 (Lingfei Jing) calligraphy in simplified Chinese. Let me update our task list to reflect our progress:
full-file-rewrite
todo.md
I can see that the search results for "灵飞经简体字帖" have loaded successfully. Let me analyze what we've found and explore the image results to get a better understanding of what's available.
Analyzing Search Results
From the search results, I can see several important pieces of information about 灵飞经简体字帖 (Lingfei Jing calligraphy in simplified Chinese):
There are articles about 《灵飞经》being referred to as "天下第一小楷" (the world's finest small regular script)
The calligrapher is 钟绍京 (Zhong Shaojing), who lived during the Tang Dynasty (659-746)
There are high-quality versions (高清版) of this calligraphy available
There are both traditional and simplified Chinese versions available as practice copybooks
Let's click on the "Images" tab to see visual examples of the 灵飞经简体字帖:
browser-click-element
I see we're now in Bing's Copilot search interface. Let's click on the "Images" tab to see visual examples of the 灵飞经简体字帖:
browser-click-element
I can now see the image search results for "灵飞经简体字帖" (Lingfei Jing calligraphy in simplified Chinese). Let me analyze what we can see in these images and update our task list.
Analyzing Image Search Results
From the image search results, I can see several examples of the 灵飞经 (Lingfei Jing) calligraphy in simplified Chinese format. The images show:
Various editions of the 灵飞经 calligraphy copybooks with simplified Chinese characters
Both hardcover and paperback versions of these practice books
Books that include both the original calligraphy and simplified character annotations
Some versions include side-by-side comparisons of traditional and simplified characters
Many books are labeled as "历代碑帖精粹" (Selected Masterpieces of Historical Inscriptions)
The original calligrapher is consistently identified as 钟绍京 (Zhong Shaojing) from the Tang Dynasty
There are versions for both brush calligraphy (毛笔) and hard-pen calligraphy (硬笔)
Let me update our task list to reflect what we've found:
full-file-rewrite
todo.md
Now I can see the image search results for "灵飞经简体字帖" (Lingfei Jing calligraphy in simplified Chinese). Let me scroll down to see more results and gather comprehensive information about these calligraphy copybooks.
browser-scroll-down
当然,由于根本没有官方版的灵飞经简体版本,所以最终没有获得啥确切的文档也在情理之中。至少它确实做了一系列的动作。
可以自己部署到本地
需要的组件比较多,先搁置
Requirements
You'll need the following components:
- A Supabase project for database and authentication
- Redis database for caching and session management
- Daytona sandbox for secure agent execution
- Python 3.11 for the API backend
- API keys for LLM providers (OpenAI or Anthropic)
- (Optional but recommended) Tavily API key for enhanced search capabilities
调试
在Suna官网执行命令没有响应
第一次没有响应,后来让它打开浏览器,确实打开了。