SagentsLiveDebugger.Live.Components.FilterConfig
(Sagents LiveDebugger v0.4.0-rc.2)
Copy Markdown
Filter configuration component for auto-follow targeting.
Filters control which agents are auto-followed when auto-follow is enabled. All agents are always visible in the list - filters only affect which agent gets automatically followed when it appears.
Supported Filters
conversation_id- Auto-follow agents for a specific conversationagent_id- Auto-follow a specific agent by ID- Custom scope fields - Auto-follow agents matching application-specific scope (e.g., user_id, project_id - these come from agent's filesystem_scope)
Usage in Templates
<.filter_config_form
filters={@auto_follow_filters}
presence_active={@followed_agent_id != nil}
/>
Summary
Functions
Renders a compact filter badge showing active filters. Use this in the header to show current filter state at a glance.
Renders the filter configuration form for auto-follow targeting.
Parse filter form params into filter configuration.
Functions
Renders a compact filter badge showing active filters. Use this in the header to show current filter state at a glance.
Attributes
filters(:any) (required)
Renders the filter configuration form for auto-follow targeting.
Attributes
filters- Current filter configuration (:all,:none, or list of filter tuples)presence_active- Whether the debugger is actively following an agent
Attributes
filters(:any) (required)presence_active(:boolean) - Defaults tofalse.
Parse filter form params into filter configuration.
Examples
iex> parse_filters(%{"conversation_id" => "conv-123"})
[{:conversation_id, "conv-123"}]
iex> parse_filters(%{"custom_key" => "project_id", "custom_value" => "proj-456"})
[{:project_id, "proj-456"}]