@rarcifa/lingua-engine-client
v0.2.9
Published
A Node.js client library for interacting with the Lingue Engine.
Downloads
4
Readme
Lingua Engine Client
The Lingua Engine Client is a TypeScript/JavaScript library designed to facilitate easy and efficient interactions with the Lingua Engine API. This client library provides methods to send queries and fetch responses from our AI model seamlessly.
Features
- Simple and intuitive API for interacting with the Lingua Engine.
- Supports sending queries and receiving AI-generated responses.
- Configurable client instances tailored to your specific endpoint and security needs.
Installation
To install the package, run the following command in your project directory:
npm install @rarcifa/lingua-engine-client
Usage
Here’s how you can use the Lingua Engine Client in your project:
Configuring the Client
import { createClient } from 'lingua-engine-client';
const client = createClient({
baseURL: 'YOUR_LINGUA_ENGINE_API_ENDPOINT',
apiKey: 'YOUR_LINGUA_ENGINE_API_KEY',
});
Sending a Query
const sendQuery = async (query) => {
try {
const response = await client.query.send(query);
console.log('AI Response:', response);
} catch (error) {
console.error('Error sending query:', error);
}
};
API
CRC20 Methods
send(query)
: Sends a query to the Lingua Engine and fetches the response.
Contributing
Contributions are welcome! If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
Licensing
The code in this project is licensed under the AWT (Ricardo Arcifa LTD) license.
Contact
If you have any questions or comments about the library, please feel free to open an issue or a pull request on our GitHub repository.