Search Results for

    Show / Hide Table of Contents

    Class PerplexityResponse

    Inheritance
    object
    PerplexityResponse
    Implements
    IProjector<ChatCompletionEvent>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit.Perplexity
    Assembly: Glitch9.AIDevKit.Provider.Perplexity.dll
    Syntax
    public sealed class PerplexityResponse : IProjector<ChatCompletionEvent>

    Properties

    | Edit this page View Source

    Choices

    Required. A list of chat completion choices. Can be more than one if n is greater than 1.

    Declaration
    [JsonProperty("choices")]
    public List<PerplexityChoice> Choices { get; set; }
    Property Value
    Type Description
    List<PerplexityChoice>
    | Edit this page View Source

    CreatedAt

    Required. The Unix timestamp (in seconds) of when the chat completion was created.

    Declaration
    [JsonProperty("created")]
    public UnixTime CreatedAt { get; set; }
    Property Value
    Type Description
    UnixTime
    | Edit this page View Source

    Id

    Required. A unique identifier for the chat completion.

    Declaration
    [JsonProperty("id")]
    public string Id { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Model

    Required. The model that generated the response.

    Declaration
    [JsonProperty("model")]
    public string Model { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Object

    Required. The type of object, which is always chat.completion.

    Declaration
    [JsonProperty("object")]
    public string Object { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    SearchResults

    A list of search results related to the response.

    Declaration
    [JsonProperty("search_results")]
    public List<ApiPublicSearchResult> SearchResults { get; set; }
    Property Value
    Type Description
    List<ApiPublicSearchResult>
    | Edit this page View Source

    Usage

    Required. Usage statistics and token counts for this completion.

    Declaration
    [JsonProperty("usage")]
    public PerplexityUsage Usage { get; set; }
    Property Value
    Type Description
    PerplexityUsage

    Methods

    | Edit this page View Source

    Project()

    Declaration
    public ChatCompletionEvent Project()
    Returns
    Type Description
    ChatCompletionEvent
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    IProjector<TOut>

    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