adk-typescript
Version:
TypeScript port of Google's Agent Development Kit (ADK)
31 lines (30 loc) • 764 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseLlm = void 0;
/**
* The BaseLlm abstract class.
*
* Attributes:
* model: The name of the LLM, e.g. gemini-2.0-flash or gemini-2.0-flash-001.
*/
class BaseLlm {
constructor(model) {
this.model = model;
}
/**
* Returns a list of supported models in regex for LlmRegistry.
*/
static supportedModels() {
return [];
}
/**
* Creates a live connection to the LLM.
*
* @param llmRequest The request to send to the LLM.
* @returns The connection to the LLM.
*/
connect(llmRequest) {
throw new Error(`Live connection is not supported for ${this.model}.`);
}
}
exports.BaseLlm = BaseLlm;