/** * ThinkHive SDK - Sessions API * * Trace session grouping for multi-turn conversation tracking */ /** Options for listing sessions */ export interface ListSessionsOptions { limit?: number; offset?: number; } /** A trace session */ export interface Session { sessionId: string; agentId: string; traceCount: number; firstTraceAt: string; lastTraceAt: string; metadata?: Record; } /** A trace within a session */ export interface SessionTrace { id: string; agentId: string; sessionId: string; input?: unknown; output?: unknown; status: string; createdAt: string; [key: string]: unknown; } /** * Sessions API client for trace session grouping */ export declare const sessions: { /** * List sessions for an agent * * @param agentId - The agent ID * @param opts - Pagination options * @returns List of sessions */ list(agentId: string, opts?: ListSessionsOptions): Promise<{ sessions: Session[]; limit: number; offset: number; hasMore: boolean; }>; /** * Get traces for a specific session * * @param sessionId - The session ID * @param agentId - The agent ID * @returns List of traces in the session */ getTraces(sessionId: string, agentId: string): Promise; }; export { sessions as default };