Interface: AnalyzeVideoOptions
Defined in: packages/agentos/src/api/analyzeVideo.ts:35
Options for a analyzeVideo call.
At minimum, a video source (videoUrl or videoBuffer) is required.
Properties
descriptionDetail?
optionaldescriptionDetail:DescriptionDetail
Defined in: packages/agentos/src/api/analyzeVideo.ts:72
How detailed scene descriptions should be.
Default
'detailed'
indexForRAG?
optionalindexForRAG:boolean
Defined in: packages/agentos/src/api/analyzeVideo.ts:86
Whether to index scene descriptions and transcripts into the RAG vector store for later retrieval.
Default
false
maxFrames?
optionalmaxFrames:number
Defined in: packages/agentos/src/api/analyzeVideo.ts:52
Maximum number of frames to sample for analysis.
maxScenes?
optionalmaxScenes:number
Defined in: packages/agentos/src/api/analyzeVideo.ts:79
Maximum number of scenes to detect. Prevents runaway analysis on very long videos.
Default
100
model?
optionalmodel:string
Defined in: packages/agentos/src/api/analyzeVideo.ts:49
Model identifier to use for the vision LLM analysis step.
onProgress()?
optionalonProgress: (event) =>void
Defined in: packages/agentos/src/api/analyzeVideo.ts:91
Optional callback invoked as analysis progresses through phases.
Parameters
event
Returns
void
prompt?
optionalprompt:string
Defined in: packages/agentos/src/api/analyzeVideo.ts:46
Text prompt / question to guide the analysis (e.g. "Describe the key actions in this video").
providerOptions?
optionalproviderOptions:Record<string,unknown>
Defined in: packages/agentos/src/api/analyzeVideo.ts:94
Arbitrary provider-specific options.
sceneThreshold?
optionalsceneThreshold:number
Defined in: packages/agentos/src/api/analyzeVideo.ts:60
Threshold for scene change detection (0-1). Lower values detect more scene boundaries (more sensitive); higher values only detect dramatic cuts.
Default
0.3
transcribeAudio?
optionaltranscribeAudio:boolean
Defined in: packages/agentos/src/api/analyzeVideo.ts:66
Whether to transcribe the audio track using the configured STT provider.
Default
true
usageLedger?
optionalusageLedger:AgentOSUsageLedgerOptions
Defined in: packages/agentos/src/api/analyzeVideo.ts:97
Optional durable usage ledger configuration for accounting.
videoBuffer?
optionalvideoBuffer:Buffer
Defined in: packages/agentos/src/api/analyzeVideo.ts:40
Raw video bytes. Mutually exclusive with videoUrl.
videoUrl?
optionalvideoUrl:string
Defined in: packages/agentos/src/api/analyzeVideo.ts:37
URL of the video to analyse. Mutually exclusive with videoBuffer.