Skip to content
Roblox API Reference

TextGenerator

Gives access to a large language model for text generation.
Memory category
Instances
Own members
5
Inherited members
75
Subclasses
0
Siblings
608

Properties27

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byTextGenerator4

Property categoryData

  • TextGenerator.Seed: number = 0
    Sets a fixed seed for the random number generator, allowing reproducible responses in cases where the same input parameters are used across multiple requests.
    • Capabilities: Basic
  • TextGenerator.SystemPrompt: string = ""
    Provides context to the model about its role, tone, or behavior during conversation.
    • Capabilities: Basic
  • TextGenerator.Temperature: number = 0.699999988
    Controls the "creativity" or randomness of the model's responses.
    • Capabilities: Basic
  • TextGenerator.TopP: number = 0.899999976
    Helps the AI model narrow or expand the range of possible words to sample from while generating the next token.
    • Capabilities: Basic

Methods43

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byTextGenerator1
  • TextGenerator:GenerateTextAsync(request: { [string]: any }): { [string]: any }
    Returns text generated by an LLM based on the provided system and user prompts.
    • Yields
    • Capabilities: Basic
    Parameters
    ParameterDescription
    request: { [string]: any }
    A dictionary containing optional parameters for the text generation request. The currently supported parameters are UserPrompt, ContextToken, and MaxTokens.
    Returns
    TypeDescription
    { [string]: any }
    A dictionary containing the generated response.

Events10

Inherited fromObject1
Inherited fromInstance9