January 31, 2025

Tool rules improvements

ToolRule objects no longer should specify a type at instantiation, as this field is now immutable.

Before:

1 rule = InitToolRule(
2 tool_name="secret_message",
3 type="run_first"
4)

After:

1 rule = InitToolRule(tool_name="secret_message")

Letta also now supports smarter retry behavior for tool rules in the case of unrecoverable failures.

New API routes to query agent steps

The List Steps and Retrieve Step routes have been added to enable querying for additional metadata around agent execution.