A class that represents the Prompt that has been created by MakerSuite and loaded from Google Drive. It exposes methods to turn this prompt into a Template, a Model, and into a chain consisting of these two elements. In general, this class should be created by the MakerSuiteHub class and not instantiated manually.

Hierarchy

  • MakerSuitePrompt

Constructors

Properties

Methods

Constructors

Properties

promptType: MakerSuitePromptType

Methods

  • Create a RunnableSequence based on the template and model that can be created from this prompt. The template will have parameters available based on the "test input" that was set in MakerSuite, and the model will have the parameters (model name, temperature, etc) from those in MakerSuite.

    Returns RunnableSequence<any, any>

  • Create a model from the prompt with all the parameters (model name, temperature, etc) set as they were in MakerSuite.

    Returns BaseLanguageModel<any, BaseLanguageModelCallOptions>

  • Create a template from the prompt, including any "test input" specified in MakerSuite as a template parameter.

    Returns PromptTemplate<any, any>

Generated using TypeDoc