AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class GenerateTextResponse

    The response from the model, including candidate completions.

    Inheritance
    object
    GenerateTextResponse
    Namespace: Glitch9.AIDevKit.Google
    Assembly: .dll
    Syntax
    public class GenerateTextResponse

    Properties

    Candidates

    Candidate responses from the model.

    Declaration
    public Candidate[] Candidates { get; set; }
    Property Value
    Type Description
    Candidate[]

    Filters

    A set of content filtering metadata for the prompt and response text.

    This indicates which SafetyCategory(s) blocked a candidate from this response, the lowest HarmProbability that triggered a block, and the HarmThreshold setting for that category. This indicates the smallest change to the SafetySettings that would be necessary to unblock at least 1 response.

    The blocking is configured by the SafetySettings in the request (or the default SafetySettings of the API).

    Declaration
    public ContentFilter[] Filters { get; set; }
    Property Value
    Type Description
    ContentFilter[]

    SafetyFeedback

    Returns any safety feedback related to content filtering.

    Declaration
    public SafetyFeedback[] SafetyFeedback { get; set; }
    Property Value
    Type Description
    SafetyFeedback[]
    In this article
    Back to top Generated by DocFX