From 7f6b4e8716c276c217a3584efc7aadb420b1efca Mon Sep 17 00:00:00 2001 From: Alfredo Gallardo Date: Tue, 17 Oct 2023 17:02:47 -0300 Subject: [PATCH] Revert "- improve: typification of shinkai name for agents" This reverts commit d9812e697bbafb813a211c0ab546e6b311c41e9d. --- .../src/components/create-job/create-job.tsx | 3 ++- libs/shinkai-message-ts/src/models/SchemaTypes.ts | 8 +------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/apps/shinkai-visor/src/components/create-job/create-job.tsx b/apps/shinkai-visor/src/components/create-job/create-job.tsx index 0d5cf933f..f43d733bf 100644 --- a/apps/shinkai-visor/src/components/create-job/create-job.tsx +++ b/apps/shinkai-visor/src/components/create-job/create-job.tsx @@ -134,7 +134,8 @@ export const CreateJob = () => { {agents?.map((agent) => ( { - agent.full_identity_name.subidentity_name + (agent.full_identity_name as any) + ?.subidentity_name } ))} diff --git a/libs/shinkai-message-ts/src/models/SchemaTypes.ts b/libs/shinkai-message-ts/src/models/SchemaTypes.ts index 8198a0262..3e52e1f6e 100644 --- a/libs/shinkai-message-ts/src/models/SchemaTypes.ts +++ b/libs/shinkai-message-ts/src/models/SchemaTypes.ts @@ -63,13 +63,7 @@ export interface APIReadUpToTimeRequest { export interface SerializedAgent { id: string; - full_identity_name: { - full_name: string, - node_name: string, - profile_name: string, - subidentity_type: 'Agent' | 'Device', - subidentity_name: string, - }; // ShinkaiName + full_identity_name: string; // ShinkaiName perform_locally: boolean; external_url?: string; api_key?: string;