API ReferenceChangelogMarch 17, 2025Max invocation count tool rule A new tool rule has been introduced for configuring a max step count per tool rule. pythonnode.js1from letta_client import Letta2client = Letta(3 token="YOUR_API_KEY",4)5client.agents.create(6 model="openai/gpt-4o-mini",7 embedding="openai/text-embedding-ada-002",8 tool_rules=[9 MaxCountPerStepToolRule(10 tool_name="manage_inventory",11 max_count_limit=1012 )13 ]14)
March 17, 2025Max invocation count tool rule A new tool rule has been introduced for configuring a max step count per tool rule. pythonnode.js1from letta_client import Letta2client = Letta(3 token="YOUR_API_KEY",4)5client.agents.create(6 model="openai/gpt-4o-mini",7 embedding="openai/text-embedding-ada-002",8 tool_rules=[9 MaxCountPerStepToolRule(10 tool_name="manage_inventory",11 max_count_limit=1012 )13 ]14)