fix: add media understanding decision types
This commit is contained in:
@@ -20,6 +20,33 @@ export type MediaUnderstandingOutput = {
|
|||||||
model?: string;
|
model?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MediaUnderstandingDecisionOutcome =
|
||||||
|
| "success"
|
||||||
|
| "skipped"
|
||||||
|
| "disabled"
|
||||||
|
| "no-attachment"
|
||||||
|
| "scope-deny";
|
||||||
|
|
||||||
|
export type MediaUnderstandingModelDecision = {
|
||||||
|
provider?: string;
|
||||||
|
model?: string;
|
||||||
|
type: "provider" | "cli";
|
||||||
|
outcome: "success" | "skipped" | "failed";
|
||||||
|
reason?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type MediaUnderstandingAttachmentDecision = {
|
||||||
|
attachmentIndex: number;
|
||||||
|
attempts: MediaUnderstandingModelDecision[];
|
||||||
|
chosen?: MediaUnderstandingModelDecision;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type MediaUnderstandingDecision = {
|
||||||
|
capability: MediaUnderstandingCapability;
|
||||||
|
outcome: MediaUnderstandingDecisionOutcome;
|
||||||
|
attachments: MediaUnderstandingAttachmentDecision[];
|
||||||
|
};
|
||||||
|
|
||||||
export type AudioTranscriptionRequest = {
|
export type AudioTranscriptionRequest = {
|
||||||
buffer: Buffer;
|
buffer: Buffer;
|
||||||
fileName: string;
|
fileName: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user