UNPKG

@datalayer/core

Version:
14 lines (13 loc) 836 B
export type RequestOptions = { signal?: AbortSignal; baseUrl?: string; }; export type RoomType = 'notebook_persist' | 'notebook_memory' | 'doc_memory'; export declare const useAIAgents: (baseUrlOverride?: string) => { createAIAgent: (documentId: string, documentType: RoomType, ingress?: string, token?: string, kernelId?: string, { signal, baseUrl }?: RequestOptions) => Promise<any>; getAIAgents: ({ signal, baseUrl }?: RequestOptions) => Promise<any>; deleteAIAgent: (documentId: string, { signal, baseUrl }?: RequestOptions) => Promise<any>; getAIAgent: (documentId: string, { signal, baseUrl }?: RequestOptions) => Promise<any>; patchAIAgent: (documentId: string, ingress?: string, token?: string, kernelId?: string, { signal, baseUrl }?: RequestOptions) => Promise<any>; }; export default useAIAgents;