Search Results for

    Show / Hide Table of Contents

    Class GenerateTextResponse

    The response from the model, including candidate completions.

    Inheritance
    object
    GenerateTextResponse
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Google
    Assembly: Glitch9.AIDevKit.Provider.Google.dll
    Syntax
    public class GenerateTextResponse

    Properties

    | Edit this page View Source

    Candidates

    Candidate responses from the model.

    Declaration
    [JsonProperty("candidates")]
    public GeminiCandidate[] Candidates { get; set; }
    Property Value
    Type Description
    GeminiCandidate[]
    | Edit this page View Source

    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
    [JsonProperty("filters")]
    public ContentFilter[] Filters { get; set; }
    Property Value
    Type Description
    ContentFilter[]
    | Edit this page View Source

    SafetyFeedback

    Returns any safety feedback related to content filtering.

    Declaration
    [JsonProperty("safetyFeedback")]
    public SafetyFeedback[] SafetyFeedback { get; set; }
    Property Value
    Type Description
    SafetyFeedback[]

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation