UNPKG

@arizeai/phoenix-client

Version:
24 lines 776 B
import type { ClientFn } from "../types/core"; import type { ProjectIdentifier } from "../types/projects"; import type { Session } from "../types/sessions"; export type ListSessionsParams = ClientFn & ProjectIdentifier; /** * List all sessions for a project with automatic pagination handling. * * @requires Phoenix server >= 13.5.0 * * @example * ```ts * import { listSessions } from "@arizeai/phoenix-client/sessions"; * * const sessions = await listSessions({ * project: "my-project", * }); * * for (const session of sessions) { * console.log(`Session: ${session.sessionId}, Traces: ${session.traces.length}`); * } * ``` */ export declare function listSessions(params: ListSessionsParams): Promise<Session[]>; //# sourceMappingURL=listSessions.d.ts.map