Skip to content

Commit 979bc38

Browse files
committed
fix: add missing filters
1 parent 799da53 commit 979bc38

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/client/src/components/agent-action-viewer.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const ITEMS_PER_PAGE = 15;
4040
enum ActionType {
4141
all = 'all',
4242
llm = 'llm',
43+
embedding = 'embedding',
4344
transcription = 'transcription',
4445
image = 'image',
4546
other = 'other',
@@ -596,8 +597,11 @@ export function AgentActionViewer({ agentId, roomId }: AgentActionViewerProps) {
596597

597598
switch (selectedType) {
598599
case ActionType.llm:
599-
// Include both LLM calls and actions (which often contain LLM prompts)
600-
if (usageType !== 'LLM' && !isActionLog) return false;
600+
// Only show LLM model calls (not actions)
601+
if (usageType !== 'LLM') return false;
602+
break;
603+
case ActionType.embedding:
604+
if (usageType !== 'Embedding') return false;
601605
break;
602606
case ActionType.transcription:
603607
if (usageType !== 'Transcription') return false;
@@ -606,6 +610,7 @@ export function AgentActionViewer({ agentId, roomId }: AgentActionViewerProps) {
606610
if (usageType !== 'Image') return false;
607611
break;
608612
case ActionType.other:
613+
// "Other" includes actions and unknown model types
609614
if (usageType !== 'Other' && usageType !== 'Unknown' && !isActionLog) return false;
610615
break;
611616
}
@@ -756,6 +761,7 @@ export function AgentActionViewer({ agentId, roomId }: AgentActionViewerProps) {
756761
<SelectContent>
757762
<SelectItem value={ActionType.all}>All Actions</SelectItem>
758763
<SelectItem value={ActionType.llm}>LLM Calls</SelectItem>
764+
<SelectItem value={ActionType.embedding}>Embeddings</SelectItem>
759765
<SelectItem value={ActionType.transcription}>Transcriptions</SelectItem>
760766
<SelectItem value={ActionType.image}>Image Operations</SelectItem>
761767
<SelectItem value={ActionType.other}>Other</SelectItem>

0 commit comments

Comments
 (0)