fix: update session-level config to inherit by making observe_me nullable (#135)
This commit is contained in:
parent
657feacc53
commit
3acf8fa0ea
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue