diff --git a/src/ipc/channels.type.ts b/src/ipc/channels.type.ts index 6d6f223..340b860 100644 --- a/src/ipc/channels.type.ts +++ b/src/ipc/channels.type.ts @@ -6,7 +6,7 @@ import { SummarizedResult, SummarizedResultChunk, UserMessage, - Agent, + AgentType, } from '../types'; import { ToServer, ToClient } from './channels.enum'; @@ -61,10 +61,10 @@ export type ChannelBody = T extends ToServer.GET_AGENTS ? {} : T extends ToServer.SAVE_AGENT - ? Agent & { id?: string } + ? Omit & { id?: number } : T extends ToServer.DELETE_AGENT - ? { id: string } + ? { id: number } : T extends ToClient.AGENTS - ? Agent[] + ? AgentType[] : // --- Other Groups... --- never; diff --git a/src/types/agent.type.ts b/src/types/agent.type.ts index 744050c..22012a6 100644 --- a/src/types/agent.type.ts +++ b/src/types/agent.type.ts @@ -1,5 +1,7 @@ -export interface Agent { - id: string; +export interface AgentType { + id: number; name: string; systemInstructions: string; + editable?: boolean; + hidden?: boolean; }