架构

应用与运行时边界

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

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

按主题阅读

部署边界

内置调度器和会话存储不构成分布式运行时。SQL 持久化、用户配额与 fencing 是不同的保证。Server v2 支持单 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.