UNPKG

@copilotkit/shared

Version:

<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />

21 lines (19 loc) 581 B
type MaybePromise<T> = T | PromiseLike<T>; /** * More specific utility for records with at least one key */ type NonEmptyRecord<T> = T extends Record<string, unknown> ? (keyof T extends never ? never : T) : never; /** * Type representing an agent's basic information */ interface AgentDescription { name: string; className: string; description: string; } interface RuntimeInfo { version: string; agents: Record<string, AgentDescription>; audioFileTranscriptionEnabled: boolean; } export { AgentDescription, MaybePromise, NonEmptyRecord, RuntimeInfo };