在这篇指南中,我们将讨论如何使用 AI 代理构建一个内容写作工具。该工具将利用 Serper.dev API 在 Google 上搜索你的查询结果,然后与 GPT-4o 结合,生成这些结果的摘要,并最终创作一篇文章。
以下是主要步骤:
cargo-shuttle init
创建一个新项目,选择 Axum 作为框架。async-openai
、reqwest
、serde
和其他相关库。Secrets.toml
文件,填入 Serper 和 OpenAI 的 API 密钥。ApiError
,用于统一处理不同类型的错误。ApiError
实现了 IntoResponse
,方便错误传播。Agent
,包含了研究员和作者两种代理。总之,使用 Rust 和 GPT-4o 构建 AI 内容写作工具是一个令人兴奋的项目!🚀
Blog
md-tui 这个项目可以实现在终端下的md文件的预览。all in terminal 又进了一步。
Repo
第一人称射击游戏,据说还很好玩。
https://puzzled-squid.itch.io/tunnet
一个教程:https://www.reddit.com/r/rust/comments/1cst0h4/making_a_3d_rust_shooter_in_3_months/
使用Tauri和Leptos实现。
https://github.com/opensourcecheemsburgers/RustyTube
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有