UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

33 lines (32 loc) • 1.16 kB
/** * Video Analysis Handler * * Provides video analysis using Google's Gemini 2.5 Flash model. * Supports both Vertex AI and Gemini API providers. * * @module adapters/video/geminiVideoAnalyzer */ import { AIProviderName } from "../../constants/enums.js"; import "../../services/server/ai/observability/instrumentation.js"; import type { ModelMessage } from "../../types/index.js"; /** * Same policy as the text path: gemini-* models go to the global endpoint, * since regional endpoints 404 for Gemini 3.x. */ export declare function resolveVideoLocation(model: string, configuredLocation: string): string; export declare function analyzeVideoWithVertexAI(messages: ModelMessage[], options?: { project?: string; location?: string; model?: string; }): Promise<string>; export declare function analyzeVideoWithGeminiAPI(messages: ModelMessage[], options?: { apiKey?: string; model?: string; }): Promise<string>; export declare function analyzeVideo(messages: ModelMessage[], options?: { provider?: AIProviderName; project?: string; location?: string; apiKey?: string; model?: string; }): Promise<string>;