From 45d306517bbaa7b2c2e31459d8468a1ef3915592 Mon Sep 17 00:00:00 2001 From: gaobinlong Date: Mon, 27 Nov 2023 18:03:59 +0800 Subject: [PATCH] Add TODO to getSessions() Signed-off-by: gaobinlong --- server/services/storage/agent_framework_storage_service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/services/storage/agent_framework_storage_service.ts b/server/services/storage/agent_framework_storage_service.ts index 680915f3..d80f5b7e 100644 --- a/server/services/storage/agent_framework_storage_service.ts +++ b/server/services/storage/agent_framework_storage_service.ts @@ -64,6 +64,7 @@ export class AgentFrameworkStorageService implements StorageService { }; } + // TODO: return real update_time in the response once the agent framework supports update_time field async getSessions(query: GetSessionsSchema): Promise { let sortField = ''; if (query.sortField === 'updatedTimeMs') { @@ -131,7 +132,7 @@ export class AgentFrameworkStorageService implements StorageService { sessionId: string | undefined, messages: IMessage[] ): Promise<{ sessionId: string; messages: IMessage[] }> { - throw new Error('Method is no need'); + throw new Error('Method is not needed'); } async deleteSession(sessionId: string): Promise {