# trpc-agent-go **Repository Path**: bryant_ba/trpc-agent-go ## Basic Information - **Project Name**: trpc-agent-go - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-03 - **Last Updated**: 2025-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [English](README.md) | 中文 # tRPC-Agent-Go [](https://pkg.go.dev/trpc.group/trpc-go/trpc-agent-go) [](https://goreportcard.com/report/github.com/trpc-group/trpc-agent-go) [](https://github.com/trpc-group/trpc-agent-go/blob/main/LICENSE) [](https://github.com/trpc-group/trpc-agent-go/releases) [](https://github.com/trpc-group/trpc-agent-go/actions/workflows/prc.yml) [](https://app.codecov.io/gh/trpc-group/trpc-agent-go/tree/main) [](https://trpc-group.github.io/trpc-agent-go/) 🚀 **一个用于构建智能 agent 系统的强大 Go 框架**,彻底改变您创建 AI 应用的方式。构建能够思考、记忆、协作和行动的自主 agent,前所未有地简单。 ✨ **为什么选择 tRPC-Agent-Go?** - 🧠 **智能推理**:先进的分层 planner 和多 agent 编排 - 🧰 **丰富的 Tool 生态系统**:与外部 API、数据库和服务的无缝集成 - 💾 **持久化 Memory**:长期状态管理和上下文感知 - 🔗 **多 Agent 协作**:Chain、Parallel 和基于 Graph 的 agent 工作流 - 📊 **生产就绪**:内置 telemetry、tracing 和企业级可靠性 - ⚡ **高性能**:针对可扩展性和低延迟进行优化 ## 🎯 使用场景 **非常适合构建:** - 🤖 **客户支持机器人** - 理解上下文并解决复杂查询的智能 agent - 📊 **数据分析助手** - 查询数据库、生成报告并提供洞察的 agent - 🔧 **DevOps 自动化** - 智能部署、监控和事件响应系统 - 💼 **业务流程自动化** - 具有 human-in-the-loop 能力的多步骤工作流 - 🧠 **研究与知识管理** - 基于 RAG 的文档分析和问答 agent ## 🚀 核心特性
| ### 🎪 **多 Agent 编排** ```go // Chain agent 构建复杂工作流 pipeline := chainagent.New("pipeline", chainagent.WithSubAgents([]agent.Agent{ analyzer, processor, reporter, })) // 或者并行运行 parallel := parallelagent.New("concurrent", parallelagent.WithSubAgents(tasks)) ``` | ### 🧠 **先进的 Memory 系统** ```go // 带搜索的持久化 memory memory := memorysvc.NewInMemoryService() agent := llmagent.New("assistant", llmagent.WithTools(memory.Tools()), llmagent.WithModel(model)) // Memory service 在 runner 层管理 runner := runner.NewRunner("app", agent, runner.WithMemoryService(memory)) // Agent 在会话间记住上下文 ``` |
| ### 🛠️ **丰富的 Tool 集成** ```go // 任何函数都可以成为 tool calculator := function.NewFunctionTool( calculate, function.WithName("calculator"), function.WithDescription("数学运算")) // MCP 协议支持 mcpTool := mcptool.New(serverConn) ``` | ### 📈 **生产监控** ```go // OpenTelemetry 集成 runner := runner.NewRunner("app", agent, runner.WithTelemetry(telemetry.Config{ TracingEnabled: true, MetricsEnabled: true, })) ``` |