Agent File (.af)

Product · Developer tool by Letta

The standard for portable, stateful AI agents.

An open file format for serializing stateful AI agents, allowing developers to share, version, and move agents with persistent memory between cloud and local servers.

Launched
2025-04-02

Category: AI Infrastructure

Deployment
Cloud and local agent servers
File Extension
.af
Primary Use Case
Agent serialization and portability
Supported State Components
Tools, settings, environment, model config, memories
Compatibility
Letta Cloud and Local Agent Servers
  • Portable.af format for stateful AI agents
  • Captures tools, environment, and model config
  • Preserves in-context and external memories
  • Enables migration between cloud and local servers

Overview

Agent File (.af) is an open file format developed by Letta for serializing stateful AI agents with persistent memory and behavior. It is designed for developers who need to make autonomous agents shareable, reproducible, and portable across different systems. The format solves the challenge of moving agents between local development environments and cloud servers by capturing their entire state, including tool definitions, execution environments, model configurations, and memories. By providing a standard for representing agentic state, Agent File enables versioning and collaboration among AI researchers and engineers. Letta provides several reference implementations in this format, including deep research and customer support agents.

Agent Portability and State

  • State Serialization: The.af format serializes the complete state of an agent, including tool definitions, settings, and execution environment configurations.
  • Memory Preservation: It captures both in-context memory blocks and external memories to ensure agents retain their learned experience across systems.
  • Server Portability: The format allows developers to move stateful agents between cloud-based and local agent servers without losing their configuration.
  • Agent Versioning: Agent File enables versioning of agents over time, allowing developers to track changes in behavior and memory.

Example Agent Templates

  • Deep Research Template: Letta provides a Deep Research inspired agent file that uses in-context memory to manage research state over long horizons.
  • Customer Support TemplateBase: A customer support agent template includes pre-configured memory and custom tools for immediate deployment.
  • Workflow Automation Template: A workflow agent template demonstrates a stateless configuration with a pre-defined tool graph for tasks like drafting emails.
  • MemGPT Research Agents: The release includes MemGPT agents with prompts from the original research release for reproducibility.

Use cases

  • Developers move stateful agents from local testing environments to production cloud servers without losing context.
  • AI researchers share reproducible agent configurations and memory states with collaborators using a single file.
  • Teams version their AI agents over time to track how memory and tool configurations evolve through experience.

Specifications

Deployment
Cloud and local agent servers
File Extension
.af
Primary Use Case
Agent serialization and portability
Supported State Components
Tools, settings, environment, model config, memories
Compatibility
Letta Cloud and Local Agent Servers

How it works

  1. Define Agent State: Define the agent's tools, model configuration, and initial memory state within the Letta environment.
  2. Serialize to.af File: Export the agent's configuration and state into the.af file format for storage or sharing.
  3. Transfer to New Server: Upload or move the.af file to a new local or cloud-based Letta agent server.
  4. Re-create and Resume: Import the.af file to instantly re-create the exact same stateful agent with all its memories and capabilities intact.

FAQ

What is the Agent File format?

Agent File (.af) is a file format designed to make stateful AI agents shareable and reproducible by serializing their entire state, including tools, environment, and memories.

What information is stored in an.af file?

It captures tool definitions and settings, the execution environment, model configuration, and both in-context and external memories.

Are there pre-built agent templates available?

Yes, Letta provides example.af files for Deep Research agents, customer support agents, and workflow agents on their GitHub repository.

How does Agent File help with agent deployment?

Agent File allows you to re-create the exact same agent on a different server, enabling seamless movement between cloud and local environments.

Added by AntSpace from public sources (letta.com).

Related

More products by Letta