长期代理式应用中的上下文管理

Dominic MarksStaff Software Engineer

Dominic Marks
资深软件工程师

Investigation Journal

Investigation Journal

调查日志

Excerpt

摘录

In complex, long-running agentic systems, maintaining alignment and coherent reasoning between agents requires careful design. In this second article of our series, we explore these challenges and the mechanisms we built to keep teams of agents working productively over long time spans. We present a range of complementary techniques that balance the conflicting requirements of continuity and creativity.

在复杂、长期运行的代理系统中,维护代理之间的对齐和连贯推理需要仔细设计。在我们系列的第二篇文章中,我们探讨了这些挑战以及我们构建的机制,以使代理团队在长时间跨度内高效协作。我们介绍了一系列互补技术,这些技术平衡了连续性和创造性的冲突要求。


In our first article, we introduced our agentic security investigation service. We described how teams of AI agents collaboratively investigate security alerts. A Director orchestrates the investigation, many specialist Experts gather evidence, and a Critic reviews the Experts’ findings. We suggest you read the series in order.

在我们的 第一篇文章中,我们介绍了我们的 agentic security investigation service。我们描述了 AI 代理团队如何协作调查安全警报。Director 协调调查,许多专家 Experts 收集证据,Critic 审查 Experts 的发现。我们建议您按顺序阅读该系列。

To briefly recap, our investigation process proceeds through a series of defined phases. Each phase implements a distinct set of agent interactions. Within phases, we may have multiple rounds, where each round is one full iteration through the phase. There’s no preset limit on the number of rounds that make up an investigation: investigations continue until concluded by the Director agent.

简要回顾,我们的调查过程通过一系列定义的阶段进行。每个阶段实现一组独特的代理交互。在阶段内,我们可能有多轮,每一轮是阶段的一次完整迭代。调查的轮数没有预设限制:调查持续到 Director agent 结束为止。

The Challenge of Long-run Coherence

长期一致性的挑战

Language model APIs are stateless: to provide continuity between requests, the caller must provide the complete message history with each request. Agent frameworks solve the state management problem for users by accumulating message history between API calls. This fills the agent’s context window, which provides a hard limit on how much information the agent can handle. Even approaching an agent’...

开通本站会员,查看完整译文。

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.1. UTC+08:00, 2026-04-14 15:19
浙ICP备14020137号-1 $Гость$