Skip to main content

Overview

Agent serialization lets you save agent configurations as JSON and reconstruct them later. Useful for persisting agent configs in databases, transferring between services, or version-controlling agent definitions.

Serialize

Deserialize

SerializedAgent Schema

Notes

  • Function-based instructions are not serializable (only string instructions are saved)
  • Runtime objects (EventBus, storage) are stripped during serialization
  • Deserialized agents have register: false by default to avoid auto-registration