AxSimpleClassifier
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/dsp/classifier.ts#L30
Constructors
Constructor
new AxSimpleClassifier(ai: AxAIService): AxSimpleClassifier;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/dsp/classifier.ts#L36
Parameters
| Parameter | Type |
|---|---|
ai | AxAIService |
Returns
AxSimpleClassifier
Methods
forward()
forward(text: string, options?: Readonly<AxSimpleClassifierForwardOptions>): Promise<string>;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/dsp/classifier.ts#L68
Parameters
| Parameter | Type |
|---|---|
text | string |
options? | Readonly<AxSimpleClassifierForwardOptions> |
Returns
Promise<string>
getState()
getState(): undefined | AxDBState;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/dsp/classifier.ts#L41
Returns
undefined | AxDBState
setClasses()
setClasses(classes: readonly AxSimpleClassifierClass[], options?: Readonly<{
abortSignal?: AbortSignal;
}>): Promise<void>;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/dsp/classifier.ts#L49
Parameters
| Parameter | Type |
|---|---|
classes | readonly AxSimpleClassifierClass[] |
options? | Readonly<{ abortSignal?: AbortSignal; }> |
Returns
Promise<void>
setOptions()
setOptions(options: Readonly<{
debug?: boolean;
}>): void;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/dsp/classifier.ts#L98
Parameters
| Parameter | Type |
|---|---|
options | Readonly<{ debug?: boolean; }> |
Returns
void
setState()
setState(state: AxDBState): void;
Defined in: https://github.com/ax-llm/ax/blob/d2df625e2c2fd70a090d6321c042579c2819f0d1/src/ax/dsp/classifier.ts#L45
Parameters
| Parameter | Type |
|---|---|
state | AxDBState |
Returns
void