FilterBase#

class council.filters.FilterBase[source]#

Bases: Monitorable, ABC

Abstract base class for an agent filter.

execute(context: AgentContext) List[ScoredChatMessage][source]#

Selects responses from the agent’s context.

Parameters:

context (AgentContext) – The context for selecting responses.

Returns:

A list of scored agent messages representing the selected responses.

Return type:

List[ScoredChatMessage]

Raises:

None

render_as_dict(include_children: bool = True) Dict[str, Any]#

returns the graph of operation as a dictionary

render_as_json() str#

returns the graph of operation as a JSON string