mirror of
https://github.com/NCBM/plyngent.git
synced 2026-07-23 05:55:16 +08:00
core/cli: resume sessions, history, editline Tab, higher tool rounds
Default to file SQLite DB and latest session; /history and /rounds; bind Tab for libedit; max tool rounds default 32.
This commit is contained in:
@@ -159,6 +159,12 @@ async def test_max_rounds() -> None:
|
||||
assert len(client.calls) == 2 # noqa: PLR2004
|
||||
|
||||
|
||||
async def test_default_max_rounds_is_generous() -> None:
|
||||
from plyngent.agent.loop import DEFAULT_MAX_ROUNDS
|
||||
|
||||
assert DEFAULT_MAX_ROUNDS >= 16 # noqa: PLR2004
|
||||
|
||||
|
||||
async def test_chat_agent_memory_roundtrip() -> None:
|
||||
store = await MemoryStore.open(DatabaseConfig())
|
||||
session = await store.create_session(name="t")
|
||||
|
||||
Reference in New Issue
Block a user