Skip to content

Commit

Permalink
Create agi.language.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 15, 2024
1 parent d868fea commit 8a21163
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions models/agi/agi.modules/agi.language.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Natural } from 'natural';

class Language {
constructor() {
this.natural = new Natural();
}

async process(query) {
// Use natural language processing to process the query
const response = this.natural.process(query);
return response;
}
}

export default Language;

0 comments on commit 8a21163

Please sign in to comment.