Skip to content

Latest commit

 

History

History
687 lines (494 loc) · 50.3 KB

api.md

File metadata and controls

687 lines (494 loc) · 50.3 KB

Shared Types

from langsmith.types import QueryPatchEvent, QueryPatchOperation

Sql

Types:

from langsmith.types import SqlQueryResponse

Methods:

ProductFeedback

Types:

from langsmith.types import ProductFeedbackCreateResponse, ProductFeedbackRetrieveResponse

Methods:

Agents

Types:

from langsmith.types import Agent

Methods:

Fleet

Threads

Types:

from langsmith.types.fleet import ThreadActivateSandboxResponse

Methods:

Sessions

Types:

from langsmith.types import (
    CustomChartsSection,
    CustomChartsSectionRequest,
    RunStatsGroupBy,
    Session,
    SessionFeedbackStat,
    SessionSortableColumns,
    TimedeltaInput,
    TracerSession,
    TracerSessionWithoutVirtualFields,
    SessionResolveResponse,
)

Methods:

Datasets

Types:

from langsmith.types import (
    DataType,
    Dataset,
    DatasetTransformation,
    DatasetVersion,
    FeedbackCreateCoreSchema,
    SortByDatasetColumn,
)

Methods:

Examples

Types:

from langsmith.types.datasets import ExampleUpdateMetadataResponse

Methods:

ExperimentRuns

Types:

from langsmith.types.datasets import ExperimentRunQueryResponse

Methods:

Runs

Types:

from langsmith.types import (
    ResponseBodyForRunsGenerateQuery,
    Run,
    RunIngest,
    RunSchema,
    RunSelectField,
    RunStatsQueryParams,
    RunType,
    RunTypeEnum,
    RunsFilterDataSourceTypeEnum,
    RunGetURLResponse,
)

Methods:

Streaming

Types:

from langsmith.types.runs import StreamingQueryV2Response

Methods:

Share

Types:

from langsmith.types.runs import ShareCreateResponse

Methods:

Threads

Types:

from langsmith.types import Thread, ThreadStats, ThreadTrace, ThreadAggregateStatsResponse

Methods:

Streaming

Types:

from langsmith.types.threads import StreamingQueryResponse

Methods:

Share

Types:

from langsmith.types.threads import ShareCreateResponse, ShareRetrieveResponse

Methods:

Traces

Types:

from langsmith.types import Trace, TraceAggregates, TraceListRunsResponse

Methods:

Streaming

Types:

from langsmith.types.traces import StreamingQueryResponse

Methods:

AISearch

Types:

from langsmith.types import AISearchParseResponse

Methods:

Evaluators

Types:

from langsmith.types import (
    CodeEvaluatorTopLevel,
    Evaluator,
    EvaluatorPagerdutyAlert,
    EvaluatorTopLevel,
    EvaluatorWebhook,
    Rule,
    EvaluatorListResponse,
)

Methods:

OnlineEvaluators

Types:

from langsmith.types import (
    BulkDeleteEvaluatorFailedItem,
    BulkDeleteEvaluatorsResponse,
    CreateOnlineCodeEvaluatorRequest,
    CreateOnlineEvaluatorRequest,
    CreateOnlineEvaluatorResponse,
    CreateOnlineLlmEvaluatorRequest,
    GetOnlineEvaluatorSpendResponse,
    OnlineCodeEvaluator,
    OnlineEvaluator,
    OnlineEvaluatorRunRule,
    OnlineEvaluatorSpendDay,
    OnlineEvaluatorSpendGroup,
    OnlineEvaluatorType,
    OnlineLlmEvaluator,
    OnlineSpendLimit,
    UpdateOnlineCodeEvaluatorRequest,
    UpdateOnlineEvaluatorRequest,
    UpdateOnlineEvaluatorResponse,
    UpdateOnlineLlmEvaluatorRequest,
)

Methods:

Public

Runs

Types:

from langsmith.types.public import RunQueryResponse

Methods:

AnnotationQueues

Types:

from langsmith.types import (
    AnnotationQueueRubricItemSchema,
    AnnotationQueueSchema,
    AnnotationQueueSizeSchema,
    RunSchemaWithAnnotationQueueInfo,
    AnnotationQueueRetrieveResponse,
    AnnotationQueueRetrieveAnnotationQueuesResponse,
    AnnotationQueueRetrieveQueuesResponse,
)

Methods:

Runs

Types:

from langsmith.types.annotation_queues import (
    RunCreateResponse,
    RunListResponse,
    RunCreateByKeyResponse,
)

Methods:

Items

Types:

from langsmith.types.annotation_queues import (
    AnnotationQueueItemAgreementState,
    AnnotationQueueItemAnswer,
    AnnotationQueueItemKeyReviews,
    ItemCreateResponse,
    ItemUpdateResponse,
    ItemListResponse,
    ItemCreateStatusResponse,
    ItemDeleteAllResponse,
    ItemRetrieveCountResponse,
    ItemRetrievePlacementResponse,
    ItemRetrieveReviewsResponse,
    ItemSetFinalResponse,
)

Methods:

PromptWebhooks

Types:

from langsmith.types import PromptWebhook, PromptWebhookListResponse, PromptWebhookTestResponse

Methods:

Info

Types:

from langsmith.types import InfoListResponse

Methods:

WorkspaceSecrets

Types:

from langsmith.types import WorkspaceSecret

Methods:

WorkspaceTags

Types:

from langsmith.types import TagKeyWithValues, WorkspaceTagListResponse

Methods:

Keys

Types:

from langsmith.types.workspace_tags import TagKey, KeyListResponse

Methods:

Values

Types:

from langsmith.types.workspace_tags.keys import TagValue, ValueListResponse

Methods:

Repos

Types:

from langsmith.types import (
    CreateRepoResponse,
    DemoConfig,
    EPromptOptimizationAlgorithm,
    GetRepoResponse,
    PromptimConfig,
    RepoWithLookups,
)

Methods:

Directories

Types:

from langsmith.types.repos import (
    DirectorySelector,
    FileEntry,
    DirectoryListResponse,
    DirectoryCommitResponse,
)

Methods:

Commits

Types:

from langsmith.types import (
    CommitManifestResponse,
    CommitWithLookups,
    CommitCreateResponse,
    CommitRetrieveResponse,
)

Methods:

Issues

Types:

from langsmith.types import Issue

Methods:

Sandboxes

Types:

from langsmith.types import (
    DownloadURLResponse,
    ProxyConfig,
    SandboxListResponse,
    SandboxMountConfig,
    SandboxResponse,
    SandboxStatusResponse,
    ServiceURLResponse,
    SnapshotListResponse,
    SnapshotResponse,
    SandboxListUsageCostsResponse,
    SandboxRetrieveUsageResponse,
)

Methods:

Boxes

Types:

from langsmith.types.sandboxes import BoxBatchDeleteResponse, BoxListServiceURLsResponse

Methods:

Volumes

Types:

from langsmith.types.sandboxes import VolumeResponse

Methods:

Registries

Types:

from langsmith.types.sandboxes import RegistryListResponse, RegistryResponse

Methods:

Snapshots

Types:

from langsmith.types.sandboxes import SnapshotRetrieveByNameResponse

Methods: