Coverage for agentos/state/__init__.py: 0%

2 statements  

« prev     ^ index     » next       coverage.py v7.14.3, created at 2026-07-02 16:36 +0800

1"""AgentOS State — 结构化 Agent 状态管理 (v1.14.0) 

2 

3Pydantic 驱动的强类型 Agent 运行时状态系统,与 Checkpoint 系统无缝对接。 

4 

5Usage: 

6 from agentos.state import AgentState 

7 state = AgentState() 

8 state.add_message("user", "Hello") 

9 state.add_message("assistant", "Hi there!") 

10 snapshot = state.snapshot() 

11""" 

12 

13from agentos.state.schema import ( 

14 AgentState, 

15 BaseAgentState, 

16 MultiAgentState, 

17 ToolCallState, 

18 ReducerStrategy, 

19 StateSchemaRegistry, 

20 state_registry, 

21) 

22 

23__all__ = [ 

24 "AgentState", 

25 "BaseAgentState", 

26 "MultiAgentState", 

27 "ToolCallState", 

28 "ReducerStrategy", 

29 "StateSchemaRegistry", 

30 "state_registry", 

31]