feat(task-5): scope matrix context state per room
This commit is contained in:
parent
03160a3b37
commit
c11c8ecfbf
7 changed files with 189 additions and 72 deletions
|
|
@ -197,9 +197,10 @@ async def test_real_platform_client_get_or_create_user_uses_local_state():
|
|||
@pytest.mark.asyncio
|
||||
async def test_real_platform_client_send_message_uses_chat_bound_client():
|
||||
agent_api = FakeAgentApiFactory()
|
||||
prototype_state = PrototypeStateStore()
|
||||
client = RealPlatformClient(
|
||||
agent_api=agent_api,
|
||||
prototype_state=PrototypeStateStore(),
|
||||
prototype_state=prototype_state,
|
||||
platform="matrix",
|
||||
)
|
||||
|
||||
|
|
@ -215,6 +216,7 @@ async def test_real_platform_client_send_message_uses_chat_bound_client():
|
|||
assert agent_api.instances["chat-7"].chat_id == "chat-7"
|
||||
assert agent_api.instances["chat-7"].calls == ["hello"]
|
||||
assert agent_api.instances["chat-7"].connect_calls == 1
|
||||
assert await prototype_state.get_last_tokens_used_for_context("chat-7") == 3
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue