架构

Sage 的 RSI 闭环复用 SAgents 的执行、上下文、工具与会话能力。宿主负责把授权的输入和资源绑定到运行时。

RSI 流程 · 优化器契约

应用与运行时边界

flowchart TB
    desktop[Desktop] --> runtime[SAgents]
    server[Server] --> runtime
    custom[自建 Python 宿主] --> runtime
    runtime --> model[模型与上下文]
    runtime --> tools[工具与 Skills]
    runtime --> state[会话与执行]

宿主负责身份认证、凭据、界面、全局会话索引和工具资源绑定。SAgentApplication 负责运行时装配和组件生命周期。SessionStore 保存权威 Session 状态和已确认事件。

按主题阅读

部署边界

内置调度器和会话存储不构成分布式运行时。SQL 持久化、用户配额与 fencing 是不同的保证。Server 支持单 worker。本机进程执行不等于容器隔离,安全边界取决于所选 provider 实际执行的约束。


Table of contents


Sage documentation for the current repository layout. Source available under the MIT license.

This site uses Just the Docs, a documentation theme for Jekyll.