UNPKG

langsmith

Version:

Client library to connect to the LangSmith Observability and Evaluation Platform.

28 lines (27 loc) 1.02 kB
// @ts-nocheck // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../core/resource.js'; import { OffsetPaginationIssues } from '../core/pagination.js'; import { path } from '../internal/utils/path.js'; export class Issues extends APIResource { /** * **Beta:** This endpoint is in active development and may change without notice. * * Returns one issue for the authenticated tenant. */ retrieve(id, options) { return this._client.get(path `/v1/platform/issues/${id}`, options); } /** * **Beta:** This endpoint is in active development and may change without notice. * * Returns issues for the authenticated tenant, optionally filtered by session, * status, severity, tag, or last modified time. */ list(query = {}, options) { return this._client.getAPIList('/v1/platform/issues', (OffsetPaginationIssues), { query, ...options, }); } }