@blinkdotnew/sdk 2.3.1 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1145,6 +1145,20 @@ declare class HttpClient {
1145
1145
  };
1146
1146
  };
1147
1147
  }, signal?: AbortSignal): Promise<Response>;
1148
+ /**
1149
+ * RAG AI Search streaming request
1150
+ * Returns raw Response for SSE streaming
1151
+ */
1152
+ ragAiSearchStream(body: {
1153
+ collection_id?: string;
1154
+ collection_name?: string;
1155
+ query: string;
1156
+ model?: string;
1157
+ max_context_chunks?: number;
1158
+ score_threshold?: number;
1159
+ system_prompt?: string;
1160
+ stream: true;
1161
+ }, signal?: AbortSignal): Promise<Response>;
1148
1162
  /**
1149
1163
  * Data-specific requests
1150
1164
  */
@@ -2085,6 +2099,8 @@ interface AISearchOptions {
2085
2099
  scoreThreshold?: number;
2086
2100
  systemPrompt?: string;
2087
2101
  stream?: boolean;
2102
+ /** AbortSignal for cancellation (streaming only) */
2103
+ signal?: AbortSignal;
2088
2104
  }
2089
2105
  interface ListDocumentsOptions {
2090
2106
  collectionId?: string;
@@ -2409,23 +2425,14 @@ declare class BlinkStorageImpl implements BlinkStorage {
2409
2425
  *
2410
2426
  * Type definitions for AI agent tools used with blink.ai.agent()
2411
2427
  */
2412
- /**
2413
- * A tool definition that can be passed to the agent
2414
- */
2415
- interface AgentTool {
2416
- /** Tool name (used as identifier) */
2417
- name: string;
2418
- /** Human-readable description for the LLM */
2419
- description: string;
2420
- /** JSON Schema for tool input parameters */
2421
- inputSchema: JSONSchema;
2422
- }
2423
2428
  /**
2424
2429
  * JSON Schema type for tool input definitions
2425
2430
  */
2426
2431
  type JSONSchema = Record<string, any>;
2427
2432
  /**
2428
2433
  * A custom webhook tool definition
2434
+ *
2435
+ * Webhook tools NEED schemas because the server forwards them to your endpoint.
2429
2436
  */
2430
2437
  interface WebhookTool {
2431
2438
  /** Tool name */
@@ -2439,6 +2446,8 @@ interface WebhookTool {
2439
2446
  }
2440
2447
  /**
2441
2448
  * A client-side tool requiring user confirmation
2449
+ *
2450
+ * Client tools NEED schemas so the AI knows what inputs to provide.
2442
2451
  */
2443
2452
  interface ClientTool {
2444
2453
  /** Tool name */
@@ -2474,8 +2483,8 @@ interface AgentConfig {
2474
2483
  model: string;
2475
2484
  /** System prompt */
2476
2485
  system?: string;
2477
- /** Built-in tools to enable (tool names or bundles) */
2478
- tools?: (AgentTool | string)[];
2486
+ /** Built-in tools to enable (tool names) */
2487
+ tools?: string[];
2479
2488
  /** Custom webhook tools */
2480
2489
  webhook_tools?: WebhookTool[];
2481
2490
  /** Client-side tools for HITL */
@@ -2624,8 +2633,8 @@ interface AgentOptions {
2624
2633
  system?: string;
2625
2634
  /** Alias for system (Vercel AI SDK compatibility) */
2626
2635
  instructions?: string;
2627
- /** Built-in tools to enable */
2628
- tools?: (AgentTool | string)[];
2636
+ /** Built-in tools to enable (tool names) */
2637
+ tools?: string[];
2629
2638
  /** Custom webhook tools */
2630
2639
  webhookTools?: WebhookTool[];
2631
2640
  /** Client-side tools for HITL */
@@ -2755,7 +2764,7 @@ declare class Agent {
2755
2764
  /**
2756
2765
  * Get the agent's tools
2757
2766
  */
2758
- get tools(): (AgentTool | string)[] | undefined;
2767
+ get tools(): string[] | undefined;
2759
2768
  }
2760
2769
  /**
2761
2770
  * Creates a stop condition for maximum step count
@@ -3512,341 +3521,144 @@ declare class BlinkConnectorsImpl implements BlinkConnectors {
3512
3521
  /**
3513
3522
  * Core Agent Tools
3514
3523
  *
3515
- * Individual tool definitions for web search, URL fetching, scraping, and code execution.
3516
- */
3517
-
3518
- /**
3519
- * Web search tool for finding current information
3520
- *
3521
- * Powered by Exa AI - performs real-time web searches and returns
3522
- * relevant results with titles, URLs, and snippets.
3523
- *
3524
- * @example
3525
- * ```ts
3526
- * import { Agent, webSearch } from '@blinkdotnew/react'
3527
- *
3528
- * const researchAgent = new Agent({
3529
- * model: 'openai/gpt-4o',
3530
- * tools: [webSearch]
3531
- * })
3532
- *
3533
- * const result = await researchAgent.generate({
3534
- * prompt: 'What are the latest AI developments?'
3535
- * })
3536
- * ```
3537
- */
3538
- declare const webSearch: AgentTool;
3539
- /**
3540
- * Fetch URL content as clean text (HTML stripped)
3541
- *
3542
- * Fast text extraction from URLs - no JavaScript rendering.
3543
- * Good for Wikipedia, documentation, articles.
3544
- *
3545
- * @example
3546
- * ```ts
3547
- * import { fetchUrl } from '@blinkdotnew/react'
3548
- *
3549
- * const chat = useAgent({
3550
- * agent: {
3551
- * model: 'openai/gpt-4o',
3552
- * tools: [fetchUrl]
3553
- * }
3554
- * })
3555
- * ```
3556
- */
3557
- declare const fetchUrl: AgentTool;
3558
- /**
3559
- * Python code interpreter for AI-generated scripts
3560
- *
3561
- * Executes Python code in an isolated E2B sandbox with Python 3.11+.
3562
- * Pre-installed libraries: numpy, pandas, matplotlib, scipy, scikit-learn, requests.
3563
- * Safe for running untrusted LLM-generated code.
3564
- *
3565
- * Returns:
3566
- * - text: Last expression result
3567
- * - stdout/stderr: Standard output streams
3568
- * - results: Rich outputs (matplotlib plots as PNG/JPEG, HTML, Markdown, etc.)
3569
- * - error: Execution errors with traceback
3570
- *
3571
- * Matplotlib plots are automatically captured and returned as base64 PNG images
3572
- * in the results array. Use plt.show() or display(plt.gcf()) to generate plots.
3573
- *
3574
- * @example
3575
- * ```ts
3576
- * import { runCode } from '@blinkdotnew/react'
3577
- *
3578
- * const chat = useAgent({
3579
- * agent: {
3580
- * model: 'openai/gpt-4o',
3581
- * tools: [runCode]
3582
- * }
3583
- * })
3584
- *
3585
- * // Agent can create data visualizations:
3586
- * // "Create a bar chart of sales data"
3587
- * // "Plot a sine wave"
3588
- * // "Analyze this CSV and show trends"
3589
- * ```
3590
- */
3591
- declare const runCode: AgentTool;
3524
+ * Tool names for web search, URL fetching, and code execution.
3525
+ * The server has the full schemas - SDK just passes tool names.
3526
+ */
3527
+ /** Search the web for current information (Exa AI) */
3528
+ declare const webSearch = "web_search";
3529
+ /** Fetch URL content as clean text (HTML stripped) */
3530
+ declare const fetchUrl = "fetch_url";
3531
+ /** Execute Python code in isolated sandbox */
3532
+ declare const runCode = "run_code";
3533
+ /** Core tools for research agents */
3534
+ declare const coreTools: readonly ["web_search", "fetch_url", "run_code"];
3592
3535
 
3593
3536
  /**
3594
3537
  * Sandbox Tools (Cursor-like)
3595
3538
  *
3596
- * File and command execution tools for AI coding agents.
3597
- * Modeled after Cursor IDE tools for familiar DX.
3598
- *
3599
- * Tools access `sandboxId` from context (NOT input params).
3600
- */
3601
-
3602
- /**
3603
- * Read file contents from sandbox
3604
- * Cursor equivalent: read_file
3605
- */
3606
- declare const readFile: AgentTool;
3607
- /**
3608
- * List files and directories
3609
- * Cursor equivalent: list_dir
3610
- */
3611
- declare const listDir: AgentTool;
3612
- /**
3613
- * Create/overwrite a file in sandbox
3614
- * Cursor equivalent: write
3615
- *
3616
- * ⚠️ WARNING: Use search_replace for existing files!
3617
- */
3618
- declare const writeFile: AgentTool;
3619
- /**
3620
- * Search and replace in files (PREFERRED editing tool)
3621
- * Cursor equivalent: search_replace
3622
- */
3623
- declare const searchReplace: AgentTool;
3624
- /**
3625
- * Regex content search using ripgrep
3626
- * Cursor equivalent: grep
3627
- */
3628
- declare const grep: AgentTool;
3629
- /**
3630
- * Find files by name pattern
3631
- * Cursor equivalent: glob_file_search
3632
- */
3633
- declare const globFileSearch: AgentTool;
3634
- /**
3635
- * Execute shell command in sandbox
3636
- * Cursor equivalent: run_terminal_cmd
3637
- */
3638
- declare const runTerminalCmd: AgentTool;
3639
- /**
3640
- * Get public URL for a port in sandbox
3641
- */
3642
- declare const getHost: AgentTool;
3643
- /**
3644
- * All sandbox tools bundled together (Cursor-like)
3645
- *
3646
- * @example
3647
- * ```ts
3648
- * import { sandboxTools, Agent } from '@blinkdotnew/sdk'
3649
- *
3650
- * const codingAgent = new Agent({
3651
- * model: 'anthropic/claude-sonnet-4-20250514',
3652
- * tools: sandboxTools,
3653
- * })
3654
- *
3655
- * // Tools include:
3656
- * // - read_file, list_dir
3657
- * // - write_file, search_replace
3658
- * // - grep, glob_file_search
3659
- * // - run_terminal_cmd, get_host
3660
- * ```
3661
- */
3662
- declare const sandboxTools: AgentTool[];
3539
+ * Tool names for file and command execution in coding agents.
3540
+ * The server has the full schemas - SDK just passes tool names.
3541
+ */
3542
+ /** Read file contents from sandbox */
3543
+ declare const readFile = "read_file";
3544
+ /** List files and directories */
3545
+ declare const listDir = "list_dir";
3546
+ /** Create/overwrite a file (use search_replace for existing files!) */
3547
+ declare const writeFile = "write_file";
3548
+ /** Search and replace in files (PREFERRED for editing) */
3549
+ declare const searchReplace = "search_replace";
3550
+ /** Regex content search using ripgrep */
3551
+ declare const grep = "grep";
3552
+ /** Find files by name pattern */
3553
+ declare const globFileSearch = "glob_file_search";
3554
+ /** Execute shell command in sandbox */
3555
+ declare const runTerminalCmd = "run_terminal_cmd";
3556
+ /** Get public URL for a sandbox port */
3557
+ declare const getHost = "get_host";
3558
+ /** All sandbox tools for coding agents */
3559
+ declare const sandboxTools: readonly ["read_file", "list_dir", "write_file", "search_replace", "grep", "glob_file_search", "run_terminal_cmd", "get_host"];
3663
3560
 
3664
3561
  /**
3665
3562
  * Database Tools
3666
3563
  *
3667
- * RLS-enforced database operations for AI agents.
3668
- * Automatically scoped to the authenticated user.
3669
- */
3670
-
3671
- /**
3672
- * Insert a new row into a database table
3673
- *
3674
- * RLS automatically sets user_id from JWT.
3675
- */
3676
- declare const dbInsert: AgentTool;
3677
- /**
3678
- * List rows from a database table with filtering and pagination
3679
- *
3680
- * RLS ensures only the user's rows are returned.
3681
- */
3682
- declare const dbList: AgentTool;
3683
- /**
3684
- * Get a single row by ID
3685
- *
3686
- * RLS ensures only the user's rows can be retrieved.
3687
- */
3688
- declare const dbGet: AgentTool;
3689
- /**
3690
- * Update a row by ID
3691
- *
3692
- * RLS ensures only the user's rows can be updated.
3693
- */
3694
- declare const dbUpdate: AgentTool;
3695
- /**
3696
- * Delete a row by ID
3697
- *
3698
- * RLS ensures only the user's rows can be deleted.
3699
- */
3700
- declare const dbDelete: AgentTool;
3701
- /**
3702
- * All database tools bundled together
3703
- *
3704
- * @example
3705
- * ```ts
3706
- * import { dbTools } from '@blinkdotnew/react'
3707
- *
3708
- * const chat = useAgent({
3709
- * agent: {
3710
- * model: 'openai/gpt-4o',
3711
- * tools: [...dbTools]
3712
- * }
3713
- * })
3714
- * ```
3715
- */
3716
- declare const dbTools: AgentTool[];
3564
+ * Tool names for RLS-enforced database operations.
3565
+ * The server has the full schemas - SDK just passes tool names.
3566
+ */
3567
+ /** Insert a new row (user_id auto-set via RLS) */
3568
+ declare const dbInsert = "db_insert";
3569
+ /** List rows with filtering/pagination (RLS enforced) */
3570
+ declare const dbList = "db_list";
3571
+ /** Get a single row by ID (RLS enforced) */
3572
+ declare const dbGet = "db_get";
3573
+ /** Update a row by ID (RLS enforced) */
3574
+ declare const dbUpdate = "db_update";
3575
+ /** Delete a row by ID (RLS enforced) */
3576
+ declare const dbDelete = "db_delete";
3577
+ /** All database tools */
3578
+ declare const dbTools: readonly ["db_insert", "db_list", "db_get", "db_update", "db_delete"];
3717
3579
 
3718
3580
  /**
3719
3581
  * Storage Tools
3720
3582
  *
3721
- * RLS-enforced file storage operations for AI agents.
3722
- * Files are stored under project-scoped paths.
3723
- */
3724
-
3725
- /**
3726
- * Upload a file to storage
3727
- *
3728
- * Accepts base64-encoded content or a URL to fetch from.
3729
- */
3730
- declare const storageUpload: AgentTool;
3731
- /**
3732
- * Download file from storage
3733
- */
3734
- declare const storageDownload: AgentTool;
3735
- /**
3736
- * List files in storage
3737
- */
3738
- declare const storageList: AgentTool;
3739
- /**
3740
- * Delete file from storage
3741
- */
3742
- declare const storageDelete: AgentTool;
3743
- /**
3744
- * Get public URL for a file
3745
- */
3746
- declare const storagePublicUrl: AgentTool;
3747
- /**
3748
- * Move/rename a file in storage
3749
- */
3750
- declare const storageMove: AgentTool;
3751
- /**
3752
- * Copy a file in storage
3753
- */
3754
- declare const storageCopy: AgentTool;
3755
- /**
3756
- * All storage tools bundled together
3757
- *
3758
- * @example
3759
- * ```ts
3760
- * import { storageTools } from '@blinkdotnew/react'
3761
- *
3762
- * const chat = useAgent({
3763
- * agent: {
3764
- * model: 'openai/gpt-4o',
3765
- * tools: [...storageTools]
3766
- * }
3767
- * })
3768
- * ```
3769
- */
3770
- declare const storageTools: AgentTool[];
3583
+ * Tool names for file storage operations.
3584
+ * The server has the full schemas - SDK just passes tool names.
3585
+ */
3586
+ /** Upload a file (base64 or URL) */
3587
+ declare const storageUpload = "storage_upload";
3588
+ /** Download file from storage */
3589
+ declare const storageDownload = "storage_download";
3590
+ /** List files in a directory */
3591
+ declare const storageList = "storage_list";
3592
+ /** Delete a file */
3593
+ declare const storageDelete = "storage_delete";
3594
+ /** Get public URL for a file */
3595
+ declare const storagePublicUrl = "storage_public_url";
3596
+ /** Move/rename a file */
3597
+ declare const storageMove = "storage_move";
3598
+ /** Copy a file */
3599
+ declare const storageCopy = "storage_copy";
3600
+ /** All storage tools */
3601
+ declare const storageTools: readonly ["storage_upload", "storage_download", "storage_list", "storage_delete", "storage_public_url", "storage_move", "storage_copy"];
3771
3602
 
3772
3603
  /**
3773
3604
  * RAG Agent Tool
3774
3605
  *
3775
- * Knowledge base search tool using TursoRAG.
3776
- *
3777
- * NOTE: Only rag_search is available as an agent tool. Agents ARE AI -
3778
- * they use rag_search to get relevant chunks, then synthesize answers themselves.
3779
- * The direct API /api/rag/:project_id/ai-search is available for non-agent use cases.
3606
+ * Tool name for knowledge base search.
3607
+ * The server has the full schema - SDK just passes tool name.
3780
3608
  */
3609
+ /** Search knowledge base using semantic similarity */
3610
+ declare const ragSearch = "rag_search";
3611
+ /** All RAG tools */
3612
+ declare const ragTools: readonly ["rag_search"];
3781
3613
 
3782
3614
  /**
3783
- * Vector search across a knowledge base collection
3784
- *
3785
- * Performs semantic similarity search to find relevant chunks from uploaded documents.
3786
- * The agent receives the chunks and synthesizes an answer from them.
3787
- * Bills for embedding generation (query vectorization).
3615
+ * Media Agent Tools
3788
3616
  *
3789
- * @example
3790
- * ```ts
3791
- * import { Agent, ragSearch } from '@blinkdotnew/react'
3792
- *
3793
- * const supportAgent = new Agent({
3794
- * model: 'openai/gpt-4o',
3795
- * tools: [ragSearch],
3796
- * system: 'You have access to a knowledge base. Use rag_search to find information, then answer based on the results.'
3797
- * })
3798
- *
3799
- * const result = await supportAgent.generate({
3800
- * prompt: 'What is our refund policy?'
3801
- * })
3802
- * ```
3803
- */
3804
- declare const ragSearch: AgentTool;
3805
- /**
3806
- * All RAG tools bundled together
3807
- *
3808
- * @example
3809
- * ```ts
3810
- * import { Agent, ragTools } from '@blinkdotnew/react'
3811
- *
3812
- * const knowledgeAgent = new Agent({
3813
- * model: 'anthropic/claude-sonnet-4-20250514',
3814
- * tools: [...ragTools],
3815
- * system: 'Search the knowledge base and answer questions based on the results.'
3816
- * })
3817
- * ```
3818
- */
3819
- declare const ragTools: AgentTool[];
3617
+ * Tool names for AI image and video generation.
3618
+ * The server has the full schemas - SDK just passes tool names.
3619
+ */
3620
+ /** Generate images from text prompts */
3621
+ declare const generateImage = "generate_image";
3622
+ /** Edit existing images with text prompts */
3623
+ declare const editImage = "edit_image";
3624
+ /** Generate videos from text prompts */
3625
+ declare const generateVideo = "generate_video";
3626
+ /** Animate static images into videos */
3627
+ declare const imageToVideo = "image_to_video";
3628
+ /** All media generation tools */
3629
+ declare const mediaTools: readonly ["generate_image", "edit_image", "generate_video", "image_to_video"];
3820
3630
 
3821
3631
  /**
3822
3632
  * Agent Tools
3823
3633
  *
3824
- * Tool definitions for use with blink.ai.agent() and useAgent()
3634
+ * Tool names for use with blink.ai.agent() and useAgent()
3635
+ *
3636
+ * Built-in tools are just string names - the server has the schemas.
3825
3637
  *
3826
3638
  * @example
3827
3639
  * ```ts
3828
3640
  * import {
3829
- * webSearch, fetchUrl, runCode, // Core tools
3830
- * ragSearch, // RAG tool
3831
- * readFile, listDir, writeFile, searchReplace, // Sandbox (Cursor-like)
3832
- * grep, globFileSearch, runTerminalCmd, getHost,
3833
- * sandboxTools, dbTools, storageTools, ragTools // Tool bundles
3834
- * } from '@blinkdotnew/react'
3641
+ * webSearch, fetchUrl, runCode, // Core tools
3642
+ * ragSearch, // RAG tool
3643
+ * sandboxTools, dbTools, storageTools, // Tool bundles
3644
+ * mediaTools // Media generation
3645
+ * } from '@blinkdotnew/sdk'
3835
3646
  *
3836
- * const chat = useAgent({
3837
- * agent: {
3838
- * model: 'openai/gpt-4o',
3839
- * tools: [...sandboxTools, webSearch, ragSearch]
3840
- * }
3647
+ * const agent = blink.ai.createAgent({
3648
+ * model: 'google/gemini-3-flash',
3649
+ * tools: [...sandboxTools, webSearch, ragSearch]
3841
3650
  * })
3842
3651
  * ```
3843
3652
  */
3844
3653
 
3845
3654
  /**
3846
- * Convert tool definitions to tool names for API request
3655
+ * Convert tools array for API request
3656
+ *
3657
+ * Since tools are now just strings, this is essentially an identity function.
3658
+ * Kept for backward compatibility.
3847
3659
  *
3848
3660
  * @internal Used by SDK to serialize tools for API
3849
3661
  */
3850
- declare function serializeTools(tools: (AgentTool | string)[]): string[];
3662
+ declare function serializeTools(tools: string[]): string[];
3851
3663
 
3852
- export { type AISearchOptions, Agent, type AgentBilling, type AgentConfig, type AgentNonStreamMessagesRequest, type AgentNonStreamPromptRequest, type AgentOptions, type AgentRequest, type AgentResponse, type AgentStep, type AgentStreamRequest, type TokenUsage as AgentTokenUsage, type AgentTool, type AnalyticsEvent, AsyncStorageAdapter, type AuthState, type AuthStateChangeCallback, type AuthTokens, type BlinkAI, BlinkAIImpl, type BlinkAnalytics, BlinkAnalyticsImpl, type BlinkClient, type BlinkClientConfig, BlinkConnectorError, type BlinkConnectors, BlinkConnectorsImpl, type BlinkData, BlinkDataImpl, BlinkDatabase, type BlinkRAG, BlinkRAGImpl, type BlinkRealtime, BlinkRealtimeChannel, BlinkRealtimeError, BlinkRealtimeImpl, type BlinkSandbox, BlinkSandboxImpl, type BlinkStorage, BlinkStorageImpl, BlinkTable, type BlinkTokenType, type BlinkUser, type ClientTool, type ConnectorApiKeyRequest, type ConnectorApiKeyResponse, type ConnectorAuthMode, type ConnectorExecuteRequest, type ConnectorExecuteResponse, type ConnectorProvider, type ConnectorStatusResponse, type ContextPolicy, type CreateCollectionOptions, type CreateOptions, type DataExtraction, type FileObject, type FilterCondition, type GenerateOptions, type ImageGenerationRequest, type ImageGenerationResponse, type JSONSchema, type ListDocumentsOptions, type Message, NoOpStorageAdapter, type ObjectGenerationRequest, type ObjectGenerationResponse, type PresenceUser, type QueryOptions, type RAGAISearchResult, type RAGAISearchSource, type RAGCollection, type RAGDocument, type RAGSearchResponse, type RAGSearchResult, type RealtimeChannel, type RealtimeGetMessagesOptions, type RealtimeMessage, type RealtimePublishOptions, type RealtimeSubscribeOptions, SANDBOX_TEMPLATES, type Sandbox, type SandboxConnectOptions, SandboxConnectionError, type SandboxCreateOptions, type SandboxTemplate, type SearchOptions, type SearchRequest, type SearchResponse, type SpeechGenerationRequest, type SpeechGenerationResponse, type StopCondition, type StorageAdapter, type StorageUploadOptions, type StorageUploadResponse, type StreamOptions, type TableOperations, type TextGenerationRequest, type TextGenerationResponse, type TokenIntrospectionResult, type TokenUsage$1 as TokenUsage, type ToolCall, type ToolResult, type TranscriptionRequest, type TranscriptionResponse, type UIMessage, type UIMessagePart, type UpdateOptions, type UploadOptions, type UpsertOptions, type WaitForReadyOptions, type WebBrowserModule, WebStorageAdapter, type WebhookTool, createClient, dbDelete, dbGet, dbInsert, dbList, dbTools, dbUpdate, fetchUrl, getDefaultStorageAdapter, getHost, globFileSearch, grep, isBrowser, isDeno, isNode, isReactNative, isServer, isWeb, listDir, platform, ragSearch, ragTools, readFile, runCode, runTerminalCmd, sandboxTools, searchReplace, serializeTools, stepCountIs, storageCopy, storageDelete, storageDownload, storageList, storageMove, storagePublicUrl, storageTools, storageUpload, webSearch, writeFile };
3664
+ export { type AISearchOptions, Agent, type AgentBilling, type AgentConfig, type AgentNonStreamMessagesRequest, type AgentNonStreamPromptRequest, type AgentOptions, type AgentRequest, type AgentResponse, type AgentStep, type AgentStreamRequest, type TokenUsage as AgentTokenUsage, type AnalyticsEvent, AsyncStorageAdapter, type AuthState, type AuthStateChangeCallback, type AuthTokens, type BlinkAI, BlinkAIImpl, type BlinkAnalytics, BlinkAnalyticsImpl, type BlinkClient, type BlinkClientConfig, BlinkConnectorError, type BlinkConnectors, BlinkConnectorsImpl, type BlinkData, BlinkDataImpl, BlinkDatabase, type BlinkRAG, BlinkRAGImpl, type BlinkRealtime, BlinkRealtimeChannel, BlinkRealtimeError, BlinkRealtimeImpl, type BlinkSandbox, BlinkSandboxImpl, type BlinkStorage, BlinkStorageImpl, BlinkTable, type BlinkTokenType, type BlinkUser, type ClientTool, type ConnectorApiKeyRequest, type ConnectorApiKeyResponse, type ConnectorAuthMode, type ConnectorExecuteRequest, type ConnectorExecuteResponse, type ConnectorProvider, type ConnectorStatusResponse, type ContextPolicy, type CreateCollectionOptions, type CreateOptions, type DataExtraction, type FileObject, type FilterCondition, type GenerateOptions, type ImageGenerationRequest, type ImageGenerationResponse, type JSONSchema, type ListDocumentsOptions, type Message, NoOpStorageAdapter, type ObjectGenerationRequest, type ObjectGenerationResponse, type PresenceUser, type QueryOptions, type RAGAISearchResult, type RAGAISearchSource, type RAGCollection, type RAGDocument, type RAGSearchResponse, type RAGSearchResult, type RealtimeChannel, type RealtimeGetMessagesOptions, type RealtimeMessage, type RealtimePublishOptions, type RealtimeSubscribeOptions, SANDBOX_TEMPLATES, type Sandbox, type SandboxConnectOptions, SandboxConnectionError, type SandboxCreateOptions, type SandboxTemplate, type SearchOptions, type SearchRequest, type SearchResponse, type SpeechGenerationRequest, type SpeechGenerationResponse, type StopCondition, type StorageAdapter, type StorageUploadOptions, type StorageUploadResponse, type StreamOptions, type TableOperations, type TextGenerationRequest, type TextGenerationResponse, type TokenIntrospectionResult, type TokenUsage$1 as TokenUsage, type ToolCall, type ToolResult, type TranscriptionRequest, type TranscriptionResponse, type UIMessage, type UIMessagePart, type UpdateOptions, type UploadOptions, type UpsertOptions, type WaitForReadyOptions, type WebBrowserModule, WebStorageAdapter, type WebhookTool, coreTools, createClient, dbDelete, dbGet, dbInsert, dbList, dbTools, dbUpdate, editImage, fetchUrl, generateImage, generateVideo, getDefaultStorageAdapter, getHost, globFileSearch, grep, imageToVideo, isBrowser, isDeno, isNode, isReactNative, isServer, isWeb, listDir, mediaTools, platform, ragSearch, ragTools, readFile, runCode, runTerminalCmd, sandboxTools, searchReplace, serializeTools, stepCountIs, storageCopy, storageDelete, storageDownload, storageList, storageMove, storagePublicUrl, storageTools, storageUpload, webSearch, writeFile };