Add parent tool rule (#1648)

This commit is contained in:
cthomas
2025-04-09 15:22:15 -07:00
committed by GitHub
parent 4cb7f576d9
commit 77ea56106b
8 changed files with 47 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ from letta.orm.enums import JobType
from letta.orm.errors import NoResultFound
from letta.schemas.agent import CreateAgent
from letta.schemas.block import CreateBlock
from letta.schemas.enums import JobStatus
from letta.schemas.enums import JobStatus, ToolRuleType
from letta.schemas.group import (
DynamicManager,
GroupCreate,
@@ -507,6 +507,8 @@ async def test_sleeptime_group_chat(server, actor):
assert "view_core_memory_with_line_numbers" in sleeptime_agent_tools
assert "core_memory_insert" in sleeptime_agent_tools
assert len([rule for rule in sleeptime_agent.tool_rules if rule.type == ToolRuleType.parent_last_tool]) > 0
# 5. Send messages and verify run ids
message_text = [
"my favorite color is orange",