@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
25 lines (24 loc) • 904 B
TypeScript
import { AIProviderName } from "../constants/enums.js";
import type { ModelMessage } from "../types/index.js";
/**
* Check if messages contain video frames (images)
* Only checks user messages to match buildContentParts behavior
*
* @param messages - Array of ModelMessage objects
* @returns true if video frames are present in user messages
*/
export declare function hasVideoFrames(messages: ModelMessage[]): boolean;
/**
* Execute video analysis on messages containing video frames
*
* @param messages - Array of ModelMessage objects with video frames
* @param options - Video analysis options
* @returns Video analysis text result
* @throws Error if analysis fails
*/
export declare function executeVideoAnalysis(messages: ModelMessage[], options: {
provider?: AIProviderName | string;
providerName?: AIProviderName;
region?: string;
model?: string;
}): Promise<string>;