Skip to main content
Access global state with convenient singleton objects for config, memory, observability, and workflows.

Quick Start

1

Agent with Global Config

2

Agent with Global Memory


Config Singleton

Global configuration storage:

Config Methods


Memory Singleton

Global memory storage:

Memory Methods


Observability Singleton

Global observability control:

Obs Methods


Workflows Singleton

Global workflow registry:

Workflows Methods


Tools Registry

Register and manage tools globally:

Common Patterns


API Reference

Tools

Tools registry class reference

Best Practices

Set up global singletons at app startup before any agents run.
Store environment-specific settings in config for easy access.
Call memory.clear() in test teardown to avoid state leakage.
Observability adds overhead - enable only in production or debugging.

Configuration

Feature configuration

Observability

Full observability setup