Skip to main content

ContextListSink

Defined in the Context Events module.
AI Agent Sink that collects events in a list. Useful for testing and programmatic access to context events.

Methods

emit()

Add event to the list.

flush()

No-op for list sink.

close()

No-op for list sink.

get_events()

Get all collected events.

clear()

Clear all collected events.

Source

View on GitHub

praisonaiagents/trace/context_events.py at line 311

Context Concept

Context Management

Context Strategies