Skip to content

Commit

Permalink
ignore unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
cornelcroi committed Aug 28, 2024
1 parent d1758fb commit 52efd2f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
10 changes: 10 additions & 0 deletions typescript/src/agents/bedrockTranslatorAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 10 additions & 0 deletions typescript/src/agents/chainAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 8 additions & 8 deletions typescript/src/agents/comprehendFilterAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 52efd2f

Please sign in to comment.