什么是代理运行时?
代理运行时是代理实际运行的引擎:它持有会话、决定调用哪些工具、流式返回回复并强制执行限制。在 Dropstone 中,同一个运行时服务于聊天、CLI 和 SDK。
代理运行时是代理运行的引擎。模型是其中的一部分:运行时负责持有会话、决定调用哪些工具以及调用顺序、流式返回回复、保持记忆可见,并强制执行账户允许的操作。
它是让代理成为代理而非聊天补全的层。补全只回答一条消息。运行时可以读取文件、运行命令、等待你对操作的批准、回调记忆,并在多个步骤中承载任务。
在 Dropstone 中,同一个运行时服务于所有界面。Dropstone Chat 和 CLI 是它的两个客户端,而 SDK 为你的代码提供相同的功能:会话、工具、流式传输以及账户的记忆。这就是为什么你的应用程序启动的会话知道你在 CLI 中教过它的内容。
一个值得了解的后果:公共 HTTP API 不是运行时。它是一个无状态的、兼容 OpenAI 的补全端点,因此不携带记忆或工具。如果你想在代码中使用代理,SDK 的本地客户端是途径。
Related articles
- Agent memoryAgent memory is what an agent stores between sessions and brings back when it is relevant: standing rules, facts, studied material, and short summaries of past conversations.
- Dropstone SDKA typed TypeScript and JavaScript client for the Dropstone agent, with two entry points: one for headless API calls from CI or a serverless function, one that runs the agent locally with the same account memory as the CLI and Chat.
- Using the API with your planCall Dropstone over HTTP with an API key. The endpoint is OpenAI-compatible, billed pay-per-use from your credit balance, and works from any language. Keys, errors, rate limits, and what the API does not carry.
- Dropstone CLI overviewThe Dropstone CLI is an agent for your terminal that reads your codebase, edits files, runs commands, and shares memory with everything else on your account. Install it in one command. The full reference is at docs.dropstone.io.
Ctrl+I