letta-ai / letta

Letta (formerly MemGPT) is a framework for creating LLM services with memory.
https://letta.com
Apache License 2.0
12.88k stars 1.41k forks source link

feat: insert `AgentState` into tool calls for stateful tools #2063

Closed sarahwooders closed 18 hours ago

sarahwooders commented 3 days ago

Description:

Allow agent state to be serialized and passed into tools during execution time. This properly gets rid of the self required for tools. This gets injected into all tools, but not all tools need to use it.

Testing

We test manually, but also write a suite of comprehensive integration tests for the sandboxes.