New Parent Tool Rule

A new tool rule has been introduced for configuring a parent tool rule, which only allows a target tool to be called after a parent tool has been run.

1from letta_client import Letta
2client = Letta(
3 token="YOUR_API_KEY",
4)
5agent = client.agents.create(
6 model="openai/gpt-4o-mini",
7 embedding="openai/text-embedding-ada-002",
8 tool_rules=[
9 ParentToolRule(
10 tool_name="parent_tool",
11 children=["child_tool"]
12 )
13 ]
14)