diff --git a/typescript/src/agents/bedrockTranslatorAgent.ts b/typescript/src/agents/bedrockTranslatorAgent.ts index c3f9f4e..5c94cf0 100644 --- a/typescript/src/agents/bedrockTranslatorAgent.ts +++ b/typescript/src/agents/bedrockTranslatorAgent.ts @@ -69,6 +69,16 @@ export class BedrockTranslatorAgent extends Agent { this.inferenceConfig = options.inferenceConfig || {}; } + /** + * Processes a user request by sending it to the Amazon Bedrock agent for processing. + * @param inputText - The user input as a string. + * @param userId - The ID of the user sending the request. + * @param sessionId - The ID of the session associated with the conversation. + * @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, userId: string, diff --git a/typescript/src/agents/chainAgent.ts b/typescript/src/agents/chainAgent.ts index ada831b..49e0533 100644 --- a/typescript/src/agents/chainAgent.ts +++ b/typescript/src/agents/chainAgent.ts @@ -21,6 +21,16 @@ export class ChainAgent extends Agent { } } +/** + * Processes a user request by sending it to the Amazon Bedrock agent for processing. + * @param inputText - The user input as a string. + * @param userId - The ID of the user sending the request. + * @param sessionId - The ID of the session associated with the conversation. + * @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, userId: string, diff --git a/typescript/src/agents/comprehendFilterAgent.ts b/typescript/src/agents/comprehendFilterAgent.ts index 8f4d4a0..ae776cf 100644 --- a/typescript/src/agents/comprehendFilterAgent.ts +++ b/typescript/src/agents/comprehendFilterAgent.ts @@ -86,15 +86,15 @@ export class ComprehendFilterAgent extends Agent { } /** - * Process a request through the content filter - * - * @param inputText - The text to be analyzed - * @param userId - User identifier - * @param sessionId - Session identifier - * @param chatHistory - Array of previous conversation messages - * @param additionalParams - Optional additional parameters - * @returns A promise resolving to a ConversationMessage if content is safe, or null if flagged + * Processes a user request by sending it to the Amazon Bedrock agent for processing. + * @param inputText - The user input as a string. + * @param userId - The ID of the user sending the request. + * @param sessionId - The ID of the session associated with the conversation. + * @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, userId: string,