@mux/ai 0.16.0 → 0.16.1
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.
|
@@ -34,7 +34,7 @@ interface EmbeddingModelIdByProvider {
|
|
|
34
34
|
google: GoogleEmbeddingModelId;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
/** A single
|
|
37
|
+
/** A single question to be answered about asset content. */
|
|
38
38
|
interface Question {
|
|
39
39
|
/** The question text */
|
|
40
40
|
question: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { W as WorkflowCredentials, S as StoragePutObjectInput, a as StoragePresi
|
|
|
2
2
|
export { A as AssetTextTrack, C as ChunkEmbedding, b as ChunkingStrategy, E as Encrypted, c as EncryptedPayload, I as ImageSubmissionMode, M as MuxAIOptions, d as MuxAsset, P as PlaybackAsset, e as PlaybackPolicy, f as StorageAdapter, T as TextChunk, g as TokenChunkingConfig, h as TokenUsage, i as ToneType, U as UsageMetadata, V as VTTChunkingConfig, j as VideoEmbeddingsResult, k as WorkflowCredentialsInput, l as WorkflowMuxClient, m as decryptFromWorkflow, n as encryptForWorkflow } from './shots-BFYOfBgN.js';
|
|
3
3
|
import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde';
|
|
4
4
|
export { i as primitives } from './index-CuBu_u5-.js';
|
|
5
|
-
export { i as workflows } from './index-
|
|
5
|
+
export { i as workflows } from './index-BfsJvx3r.js';
|
|
6
6
|
import '@mux/mux-node';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '@ai-sdk/anthropic';
|
|
9
9
|
import '@ai-sdk/google';
|
|
10
10
|
import '@ai-sdk/openai';
|
|
11
11
|
|
|
12
|
-
var version = "0.16.
|
|
12
|
+
var version = "0.16.1";
|
|
13
13
|
|
|
14
14
|
type MuxAiErrorType = "validation_error" | "processing_error" | "timeout_error";
|
|
15
15
|
/**
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// package.json
|
|
8
|
-
var version = "0.16.
|
|
8
|
+
var version = "0.16.1";
|
|
9
9
|
|
|
10
10
|
// src/lib/mux-ai-error.ts
|
|
11
11
|
var MuxAiError = class extends Error {
|
|
@@ -2327,8 +2327,9 @@ var SYSTEM_PROMPT = dedent`
|
|
|
2327
2327
|
<answer_guidelines>
|
|
2328
2328
|
- Each question is presented as its own <question> block with a <text> element (the question) and an <allowed_answers> element (the permitted response values)
|
|
2329
2329
|
- Choose only from the values listed in that question's <allowed_answers> element
|
|
2330
|
-
-
|
|
2331
|
-
-
|
|
2330
|
+
- Questions may have any set of allowed answers. Always read the <allowed_answers> for each question and select the best matching option based on the evidence
|
|
2331
|
+
- Select the answer best supported by observable evidence from the content
|
|
2332
|
+
- When evidence is ambiguous but some signal exists, select the most conservative option and use a low confidence score. If the question cannot be answered at all from the content, skip it per the relevance_filtering rules
|
|
2332
2333
|
- Confidence should reflect the clarity and strength of evidence:
|
|
2333
2334
|
* 0.9-1.0: Clear, unambiguous evidence
|
|
2334
2335
|
* 0.7-0.9: Strong evidence with minor ambiguity
|
|
@@ -2417,8 +2418,9 @@ var AUDIO_ONLY_SYSTEM_PROMPT = dedent`
|
|
|
2417
2418
|
<answer_guidelines>
|
|
2418
2419
|
- Each question is presented as its own <question> block with a <text> element (the question) and an <allowed_answers> element (the permitted response values)
|
|
2419
2420
|
- Choose only from the values listed in that question's <allowed_answers> element
|
|
2420
|
-
-
|
|
2421
|
-
-
|
|
2421
|
+
- Questions may have any set of allowed answers. Always read the <allowed_answers> for each question and select the best matching option based on the evidence
|
|
2422
|
+
- Select the answer best supported by observable evidence from the content
|
|
2423
|
+
- When evidence is ambiguous but some signal exists, select the most conservative option and use a low confidence score. If the question cannot be answered at all from the content, skip it per the relevance_filtering rules
|
|
2422
2424
|
- Confidence should reflect the clarity and strength of evidence:
|
|
2423
2425
|
* 0.9-1.0: Clear, unambiguous evidence
|
|
2424
2426
|
* 0.7-0.9: Strong evidence with minor ambiguity
|