smoltalk
    Preparing search index...

    Interface Strategy

    interface Strategy {
        _text(config: SmolPromptConfig): Promise<Result<PromptResult>>;
        _textSync(config: SmolPromptConfig): Promise<Result<PromptResult>>;
        text(config: SmolPromptConfig): Promise<Result<PromptResult>>;
        textStream(
            config: SmolPromptConfig,
        ): Promise<Result<AsyncIterable<PromptResult, any, any>>>;
        textSync(config: SmolPromptConfig): Promise<Result<PromptResult>>;
        toJSON(): StrategyJSON;
        toShortString(): string;
        toString(): string;
    }

    Implemented by

    Index

    Methods

    • Returns string

    • Returns string