feat(agent-runner): scope event-first state by binding

This commit is contained in:
huanghuoguoguo
2026-05-23 19:45:57 +08:00
parent 8aba467a42
commit cefd99e416
4 changed files with 1008 additions and 15 deletions

View File

@@ -261,14 +261,9 @@ class AgentRunContextBuilder:
# Populate with actual values from stores
context_access = await self._build_context_access(event, descriptor)
# Build state snapshot (for event-first, we need event-based scope key)
# For now, return empty state - will be implemented with state_store migration
state: AgentRunState = {
'conversation': {},
'actor': {},
'subject': {},
'runner': {},
}
# Build state snapshot from event context
state_store = get_state_store()
state: AgentRunState = state_store.build_snapshot_from_event(event, binding, descriptor)
# Build runtime context
runtime: AgentRuntimeContext = {