fix: update session-level config to inherit by making observe_me nullable (#135)

This commit is contained in:
doria 2025-06-19 16:37:12 -04:00 committed by GitHub
parent 657feacc53
commit 3acf8fa0ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -185,7 +185,11 @@ async def enqueue(payload: list[dict]):
)
observe_me = (
sender_session_peer_config.observe_me
(
sender_session_peer_config.observe_me
if sender_session_peer_config.observe_me is not None
else sender_peer_config.observe_me
)
if sender_session_peer_config
else sender_peer_config.observe_me
)

View File

@ -136,8 +136,8 @@ class SessionPeerConfig(BaseModel):
default=False,
description="Whether this peer should form a session-level theory-of-mind representation of other peers in the session",
)
observe_me: bool = Field(
default=True,
observe_me: bool | None = Field(
default=None,
description="Whether other peers in this session should try to form a session-level theory-of-mind representation of this peer",
)