Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
XaviPeiro committed Aug 30, 2024
1 parent b765fc8 commit 0cc44d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,11 @@ export class Session {
);
}

async execute_function(functionIds: string[], objective: string, context: string): Promise<void> {
async execute_function(
functionIds: string[],
objective: string,
context: string,
): Promise<void> {
// You should not start a session before executing this one
await this._submitMessage({
type: "execute_functions",
Expand All @@ -270,7 +274,6 @@ export class Session {
context: context,
});
}

}
export class AiEngine {
private readonly _apiBaseUrl: string;
Expand Down
8 changes: 4 additions & 4 deletions src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0cc44d1

Please sign in to comment.