mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-14 10:30:10 +01:00
a5bb77f97a
V1 of agent support via built-in `@agent` that can be invoked alongside normal workspace RAG chat.
20 lines
357 B
JavaScript
20 lines
357 B
JavaScript
/**
|
|
* A service that provides an AI client to create a completion.
|
|
*/
|
|
|
|
class Provider {
|
|
_client;
|
|
constructor(client) {
|
|
if (this.constructor == Provider) {
|
|
throw new Error("Class is of abstract type and can't be instantiated");
|
|
}
|
|
this._client = client;
|
|
}
|
|
|
|
get client() {
|
|
return this._client;
|
|
}
|
|
}
|
|
|
|
module.exports = Provider;
|