diff --git a/src/index.ts b/src/index.ts index f84be47..f25b062 100644 --- a/src/index.ts +++ b/src/index.ts @@ -261,7 +261,11 @@ export class Session { ); } - async execute_function(functionIds: string[], objective: string, context: string): Promise { + async execute_function( + functionIds: string[], + objective: string, + context: string, + ): Promise { // You should not start a session before executing this one await this._submitMessage({ type: "execute_functions", @@ -270,7 +274,6 @@ export class Session { context: context, }); } - } export class AiEngine { private readonly _apiBaseUrl: string; diff --git a/src/types/api.ts b/src/types/api.ts index cc07ff6..cb32a8e 100644 --- a/src/types/api.ts +++ b/src/types/api.ts @@ -30,10 +30,10 @@ export interface ApiStartMessage { } export interface ApiUserMessageExecuteFunctions { - type: "execute_functions"; - functions: string[]; - objective: string; - context: string; + type: "execute_functions"; + functions: string[]; + objective: string; + context: string; } export interface ApiSelectedTasks {