mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-13 01:06:03 +00:00
chore(agent): remove v1 wording from runner internals
This commit is contained in:
@@ -9,7 +9,7 @@ from langbot_plugin.api.entities.builtin.pipeline import query as pipeline_query
|
||||
from .descriptor import AgentRunnerDescriptor
|
||||
|
||||
|
||||
# Valid state scopes per PROTOCOL_V1.md
|
||||
# Valid state scopes for agent runner state updates.
|
||||
VALID_STATE_SCOPES = ('conversation', 'actor', 'subject', 'runner')
|
||||
|
||||
# Key mapping for backward compatibility
|
||||
@@ -25,7 +25,7 @@ class RunnerScopedStateStore:
|
||||
|
||||
Key Design Principles:
|
||||
1. Host-owned: State is owned and managed by LangBot host, not by the plugin.
|
||||
The plugin can only read/write through the SDK v1 protocol state API.
|
||||
The plugin can only read/write through agent runner state updates.
|
||||
2. Scope keys based on stable host identity: Uses host-controlled identifiers
|
||||
(runner_id, bot_uuid, pipeline_uuid, launcher_type, launcher_id) rather
|
||||
than external/unstable identifiers like external conversation id.
|
||||
@@ -296,4 +296,4 @@ def reset_state_store() -> None:
|
||||
"""Reset the global state store (for testing)."""
|
||||
global _state_store
|
||||
with _state_store_lock:
|
||||
_state_store = None
|
||||
_state_store = None
|
||||
|
||||
Reference in New Issue
Block a user