Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
brnaba-aws committed Nov 22, 2024
1 parent 0963d45 commit 738eb4b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions typescript/src/classifiers/openAIClassifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ export class OpenAIClassifier extends Classifier {
};
}

/**
* Method to process a request.
* This method must be implemented by all concrete agent classes.
*
* @param inputText - The user input as a string.
* @param chatHistory - An array of Message objects representing the conversation history.
* @param additionalParams - Optional additional parameters as key-value pairs.
* @returns A Promise that resolves to a Message object containing the agent's response.
*/
/* eslint-disable @typescript-eslint/no-unused-vars */
async processRequest(
inputText: string,
chatHistory: ConversationMessage[]
Expand Down
2 changes: 1 addition & 1 deletion typescript/tests/classifiers/OpenAIClassifier.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { OpenAIClassifier, OpenAIClassifierOptions } from '../../src/classifiers/openAIClassifier';
import OpenAI from 'openai';
import { ConversationMessage, OPENAI_MODEL_ID_GPT_O_MINI, ParticipantRole } from "../../src/types";
import { ConversationMessage, OPENAI_MODEL_ID_GPT_O_MINI } from "../../src/types";
import { MockAgent } from '../mock/mockAgent';

// Mock the OpenAI module
Expand Down

0 comments on commit 738eb4b

Please sign in to comment.