Agent 是「调用工具、观察结果、决定下一步」的循环,难在写稳。完整骨架 + 三重防护(max_steps、重复调用检测、结果截断)、工具描述要写「何时使用」、错误作为观察结果返回而非抛异常、上下文膨胀的三种压缩、trace 记录每步成本。
标签: agent
1 篇文章
标签
actix-web 2agent 1ai 5android 8asdf 4axum 2cost 1deployment 1django 2docker 2echo 2express 2fastapi 1fastify 2fiber 2flask 2frankenphp 2front-end 2gin 1go-zero 2golang 14guide 1hono 1hyperf 2ios 8java 10kotlin 8kratos 2laravel 1learning-path 12mysql 1nestjs 2nextjs 9nginx 2nodejs 12php 17practice 4prompt 1python 11quarkus 2rag 1react 22react-native 6rust 14spring-boot 1swift 8swoole 3symfony 2tanstack 6tauri 2thinkphp 2troubleshooting 5webman 2workerman 3参考资料 28