Skip to main content

OpenAI Agents SDK Integration

Z3rno provides memory as OpenAI-compatible function tools. Your agent can store, recall, and forget memories through standard tool-calling — no custom wiring required.

Installation

Setup

Tool Definitions

get_memory_tools() returns three function tool definitions: These are standard OpenAI function-calling tool definitions that you pass directly to the API.

Basic Usage with Chat Completions

Automatic Conversation Memory

For agents that should automatically store every message without explicit tool calls, use Z3rnoConversationMemory:

Agent Loop Pattern

A complete agent loop that uses memory tools:

Next Steps