Skip to main content

sage-vida

Vida Agent — 24/7 持久化自主 Agent,SAGE 生态 L4 应用层包。

概述

Vida (Virtually Intelligent Daemon Agent) 是 SAGE 生态中负责 7×24 小时持续运行的自主 Agent 框架。整合三层记忆(工作/情节/语义)、周期性自我反思与多源触发管理。

层次关系

sage.vida (L4)
  └── sage.middleware (L3)  — VidaMemoryBridge 通过 sage.middleware.components.sage_mem
  └── isage-neuromem (L3)   — 三层记忆服务(可选,动态加载)
  └── sage.common (L1)

核心组件

组件 说明
VidaAgent 24/7 守护进程,统一编排事件循环、记忆联动与反思
VidaMemoryBridge 三层记忆接入(工作/情节/语义)
VidaReflectionEngine 周期性自我反思与语义记忆整合
TriggerManager 多源触发器管理(定时/Webhook/文件/自定义)

快速开始

pip install isage-vida
# 含记忆后端(需要 isage-neuromem)
pip install "isage-vida[neuromem]"
from sage.vida import VidaAgent, VidaMemoryBridge, VidaReflectionEngine

bridge = VidaMemoryBridge(config={"data_dir": "/tmp/vida"})
agent = VidaAgent(react_loop=my_loop, memory_bridge=bridge)

await agent.start()
result = await agent.ask("user1", "今天天气如何?")
print(result.answer)
await agent.shutdown()

开发环境

./quickstart.sh        # 安装 hooks + pip install -e .[dev]
./quickstart.sh --doctor

测试

pytest tests/ -v

注意:VidaMemoryBridge 相关测试需要 isage-neuromem 已安装,否则自动跳过。

许可证

Apache-2.0

Metadata

Release files for isage-vida 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for isage-vida 0.1.0
File Size Uploaded
isage_vida-0.1.0.tar.gz 25.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for isage-vida 0.1.0
File Interpreter ABI Platform
isage_vida-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 46.9 kB

Release files / isage_vida-0.1.0.tar.gz

Download URL isage_vida-0.1.0.tar.gz
Size 25.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4a8773e904e13a0969bebddfe040c9927b1735fc7a505ec2ac17c7c10beef517
BLAKE2b-256 checksum
How to use checksums
67f443894a5b03fb307b7ba9e77c5fbadbfa5287d58d0034cd7969ca231e9930
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / isage_vida-0.1.0-py3-none-any.whl

Download URL isage_vida-0.1.0-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7cd91e433cce2e4434db59916f745311d019a753591931acdb14b25616039b2d
BLAKE2b-256 checksum
How to use checksums
c44260c8170c5775676cded9c7a54d819a6412c05dcb3b615c1f22a3d4b2f9f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page