core / state / agent_state¶
core.state.agent_state
¶
Global runtime state for a single-user, single-agent process.
AgentState
dataclass
¶
Authoritative runtime state for the agent.
Source code in core\state\agent_state.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
refresh(*, conversation_state=None, current_task=None, event_stream=None, gui_mode=None)
¶
Update only fields that changed.
Source code in core\state\agent_state.py
31 32 33 34 35 36 37 38 39 40 41 42 43 | |
set_agent_property(key, value)
¶
Sets a global agent property (not specific to any task).
Source code in core\state\agent_state.py
45 46 47 48 49 | |
get_agent_property(key, default=None)
¶
Retrieves a global agent property.
Source code in core\state\agent_state.py
51 52 53 54 55 | |
get_agent_properties()
¶
Retrieves all global agent properties.
Source code in core\state\agent_state.py
57 58 59 60 61 | |