Skip to content

Latest commit

 

History

History
125 lines (87 loc) · 4.14 KB

File metadata and controls

125 lines (87 loc) · 4.14 KB

Shared Types

from perplexity.types import (
    APIPublicSearchResult,
    BrowserSessionResponse,
    ChatMessageInput,
    ChatMessageOutput,
    Choice,
    ContextualizedEmbeddingObject,
    EmbeddingObject,
    EmbeddingsUsage,
    JsonSchemaFormat,
    ResponseFormat,
    SearchResult,
    UsageInfo,
    UserLocation,
    WebSearchOptions,
)

Chat

Types:

from perplexity.types import StreamChunk

Completions

Methods:

Search

Types:

from perplexity.types import SearchCreateResponse

Methods:

Responses

Types:

from perplexity.types import (
    Annotation,
    ContentPart,
    ErrorInfo,
    FunctionCallOutputItem,
    FunctionToolParam,
    InputItemParam,
    OutputItem,
    ResponseStreamChunk,
    ResponseCreateParams,
    ResponsesUsage,
    ResponseCreateResponse,
)

Methods:

Embeddings

Types:

from perplexity.types import EmbeddingCreateResponse

Methods:

ContextualizedEmbeddings

Types:

from perplexity.types import ContextualizedEmbeddingCreateResponse

Methods:

Browser

Sessions

Methods:

Async

Chat

Completions

Types:

from perplexity.types.async_.chat import (
    CompletionCreateResponse,
    CompletionListResponse,
    CompletionGetResponse,
)

Methods: