@sourcegraph/amp 0.0.1748837248-g7b4e5c → 0.0.1748851339-g31df22
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.
- package/dist/amp.js +1 -1
- package/dist/{main-DrgvZxwr.js → main-DuPQOPga.js} +226 -226
- package/dist/{main-DrgvZxwr.js.map → main-DuPQOPga.js.map} +1 -1
- package/dist/{node-CV6v7tIs.js → node-B1RLuGfG.js} +2 -2
- package/dist/{node-CV6v7tIs.js.map → node-B1RLuGfG.js.map} +1 -1
- package/dist/{node-DlxghfUp.js → node-DGc3Eu0F.js} +2 -2
- package/dist/{node-DlxghfUp.js.map → node-DGc3Eu0F.js.map} +1 -1
- package/dist/{stdio-z5yud9PS.js → stdio-Egb8ZIIg.js} +2 -2
- package/dist/{stdio-z5yud9PS.js.map → stdio-Egb8ZIIg.js.map} +1 -1
- package/package.json +1 -1
@@ -7750,7 +7750,7 @@ async function h2(i, e, t) {
|
|
7750
7750
|
const { loadProfileEnvironmentVariables: r } = await import("./load-profile-CWDhvBXX.js"), o = t.loadProfile === "never" || !t.workingDirectory ? process.env : await pt(
|
7751
7751
|
r(t.workingDirectory, t.loadProfile)
|
7752
7752
|
);
|
7753
|
-
n = await import("./stdio-
|
7753
|
+
n = await import("./stdio-Egb8ZIIg.js").then(
|
7754
7754
|
({ StdioClientTransport: s }) => new s({
|
7755
7755
|
...i,
|
7756
7756
|
stderr: "pipe",
|
@@ -8575,7 +8575,7 @@ the \`${dm}\` with the url.
|
|
8575
8575
|
requiresNetwork: !0
|
8576
8576
|
}
|
8577
8577
|
},
|
8578
|
-
fn: import("./node-
|
8578
|
+
fn: import("./node-DGc3Eu0F.js").then(({ nodeWebSearchTool: i }) => i)
|
8579
8579
|
}, k2 = `Execute a routine from your routines.amp.yaml file.
|
8580
8580
|
|
8581
8581
|
This tool allows you to run predefined routines that automate common tasks. You can optionally provide a userInput argument that describes what input should be passed to the routine.
|
@@ -8605,7 +8605,7 @@ IMPORTANT: The result of this tool (if any) should be displayed directly to the
|
|
8605
8605
|
},
|
8606
8606
|
source: "builtin"
|
8607
8607
|
},
|
8608
|
-
fn: import("./node-
|
8608
|
+
fn: import("./node-B1RLuGfG.js").then(({ runRoutine: i }) => i)
|
8609
8609
|
};
|
8610
8610
|
let f0 = !1;
|
8611
8611
|
async function MT(i, e = !1) {
|
@@ -22486,10 +22486,10 @@ function X5(i, e) {
|
|
22486
22486
|
const t = {}, n = m(e, ["authConfig"]);
|
22487
22487
|
return n != null && y(t, ["authConfig"], Q5(i, n)), t;
|
22488
22488
|
}
|
22489
|
-
function
|
22489
|
+
function e9() {
|
22490
22490
|
return {};
|
22491
22491
|
}
|
22492
|
-
function
|
22492
|
+
function t9(i, e) {
|
22493
22493
|
const t = {}, n = m(e, [
|
22494
22494
|
"functionDeclarations"
|
22495
22495
|
]);
|
@@ -22508,13 +22508,13 @@ function tB(i, e) {
|
|
22508
22508
|
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
22509
22509
|
if (m(e, ["googleMaps"]) !== void 0)
|
22510
22510
|
throw new Error("googleMaps parameter is not supported in Gemini API.");
|
22511
|
-
m(e, ["urlContext"]) != null && y(t, ["urlContext"],
|
22511
|
+
m(e, ["urlContext"]) != null && y(t, ["urlContext"], e9());
|
22512
22512
|
const a = m(e, [
|
22513
22513
|
"codeExecution"
|
22514
22514
|
]);
|
22515
22515
|
return a != null && y(t, ["codeExecution"], a), t;
|
22516
22516
|
}
|
22517
|
-
function
|
22517
|
+
function r9(i, e) {
|
22518
22518
|
const t = {}, n = m(e, [
|
22519
22519
|
"functionDeclarations"
|
22520
22520
|
]);
|
@@ -22540,13 +22540,13 @@ function rB(i, e) {
|
|
22540
22540
|
]);
|
22541
22541
|
return c != null && y(t, ["codeExecution"], c), t;
|
22542
22542
|
}
|
22543
|
-
function
|
22543
|
+
function n9(i, e) {
|
22544
22544
|
const t = {}, n = m(e, ["handle"]);
|
22545
22545
|
if (n != null && y(t, ["handle"], n), m(e, ["transparent"]) !== void 0)
|
22546
22546
|
throw new Error("transparent parameter is not supported in Gemini API.");
|
22547
22547
|
return t;
|
22548
22548
|
}
|
22549
|
-
function
|
22549
|
+
function i9(i, e) {
|
22550
22550
|
const t = {}, n = m(e, ["handle"]);
|
22551
22551
|
n != null && y(t, ["handle"], n);
|
22552
22552
|
const r = m(e, ["transparent"]);
|
@@ -22558,7 +22558,7 @@ function WS() {
|
|
22558
22558
|
function zS() {
|
22559
22559
|
return {};
|
22560
22560
|
}
|
22561
|
-
function
|
22561
|
+
function o9(i, e) {
|
22562
22562
|
const t = {}, n = m(e, ["disabled"]);
|
22563
22563
|
n != null && y(t, ["disabled"], n);
|
22564
22564
|
const r = m(e, [
|
@@ -22578,7 +22578,7 @@ function oB(i, e) {
|
|
22578
22578
|
]);
|
22579
22579
|
return a != null && y(t, ["silenceDurationMs"], a), t;
|
22580
22580
|
}
|
22581
|
-
function
|
22581
|
+
function s9(i, e) {
|
22582
22582
|
const t = {}, n = m(e, ["disabled"]);
|
22583
22583
|
n != null && y(t, ["disabled"], n);
|
22584
22584
|
const r = m(e, [
|
@@ -22598,11 +22598,11 @@ function sB(i, e) {
|
|
22598
22598
|
]);
|
22599
22599
|
return a != null && y(t, ["silenceDurationMs"], a), t;
|
22600
22600
|
}
|
22601
|
-
function
|
22601
|
+
function a9(i, e) {
|
22602
22602
|
const t = {}, n = m(e, [
|
22603
22603
|
"automaticActivityDetection"
|
22604
22604
|
]);
|
22605
|
-
n != null && y(t, ["automaticActivityDetection"],
|
22605
|
+
n != null && y(t, ["automaticActivityDetection"], o9(i, n));
|
22606
22606
|
const r = m(e, [
|
22607
22607
|
"activityHandling"
|
22608
22608
|
]);
|
@@ -22610,11 +22610,11 @@ function aB(i, e) {
|
|
22610
22610
|
const o = m(e, ["turnCoverage"]);
|
22611
22611
|
return o != null && y(t, ["turnCoverage"], o), t;
|
22612
22612
|
}
|
22613
|
-
function
|
22613
|
+
function l9(i, e) {
|
22614
22614
|
const t = {}, n = m(e, [
|
22615
22615
|
"automaticActivityDetection"
|
22616
22616
|
]);
|
22617
|
-
n != null && y(t, ["automaticActivityDetection"],
|
22617
|
+
n != null && y(t, ["automaticActivityDetection"], s9(i, n));
|
22618
22618
|
const r = m(e, [
|
22619
22619
|
"activityHandling"
|
22620
22620
|
]);
|
@@ -22622,15 +22622,15 @@ function lB(i, e) {
|
|
22622
22622
|
const o = m(e, ["turnCoverage"]);
|
22623
22623
|
return o != null && y(t, ["turnCoverage"], o), t;
|
22624
22624
|
}
|
22625
|
-
function
|
22625
|
+
function u9(i, e) {
|
22626
22626
|
const t = {}, n = m(e, ["targetTokens"]);
|
22627
22627
|
return n != null && y(t, ["targetTokens"], n), t;
|
22628
22628
|
}
|
22629
|
-
function
|
22629
|
+
function c9(i, e) {
|
22630
22630
|
const t = {}, n = m(e, ["targetTokens"]);
|
22631
22631
|
return n != null && y(t, ["targetTokens"], n), t;
|
22632
22632
|
}
|
22633
|
-
function
|
22633
|
+
function f9(i, e) {
|
22634
22634
|
const t = {}, n = m(e, [
|
22635
22635
|
"triggerTokens"
|
22636
22636
|
]);
|
@@ -22638,9 +22638,9 @@ function fB(i, e) {
|
|
22638
22638
|
const r = m(e, [
|
22639
22639
|
"slidingWindow"
|
22640
22640
|
]);
|
22641
|
-
return r != null && y(t, ["slidingWindow"],
|
22641
|
+
return r != null && y(t, ["slidingWindow"], u9(i, r)), t;
|
22642
22642
|
}
|
22643
|
-
function
|
22643
|
+
function d9(i, e) {
|
22644
22644
|
const t = {}, n = m(e, [
|
22645
22645
|
"triggerTokens"
|
22646
22646
|
]);
|
@@ -22648,21 +22648,21 @@ function dB(i, e) {
|
|
22648
22648
|
const r = m(e, [
|
22649
22649
|
"slidingWindow"
|
22650
22650
|
]);
|
22651
|
-
return r != null && y(t, ["slidingWindow"],
|
22651
|
+
return r != null && y(t, ["slidingWindow"], c9(i, r)), t;
|
22652
22652
|
}
|
22653
|
-
function
|
22653
|
+
function h9(i, e) {
|
22654
22654
|
const t = {}, n = m(e, [
|
22655
22655
|
"proactiveAudio"
|
22656
22656
|
]);
|
22657
22657
|
return n != null && y(t, ["proactiveAudio"], n), t;
|
22658
22658
|
}
|
22659
|
-
function
|
22659
|
+
function p9(i, e) {
|
22660
22660
|
const t = {}, n = m(e, [
|
22661
22661
|
"proactiveAudio"
|
22662
22662
|
]);
|
22663
22663
|
return n != null && y(t, ["proactiveAudio"], n), t;
|
22664
22664
|
}
|
22665
|
-
function
|
22665
|
+
function m9(i, e, t) {
|
22666
22666
|
const n = {}, r = m(e, [
|
22667
22667
|
"generationConfig"
|
22668
22668
|
]);
|
@@ -22700,12 +22700,12 @@ function mB(i, e, t) {
|
|
22700
22700
|
const w = m(e, ["tools"]);
|
22701
22701
|
if (t !== void 0 && w != null) {
|
22702
22702
|
let M = bc(i, w);
|
22703
|
-
Array.isArray(M) && (M = M.map(($) =>
|
22703
|
+
Array.isArray(M) && (M = M.map(($) => t9(i, wc(i, $)))), y(t, ["setup", "tools"], M);
|
22704
22704
|
}
|
22705
22705
|
const b = m(e, [
|
22706
22706
|
"sessionResumption"
|
22707
22707
|
]);
|
22708
|
-
t !== void 0 && b != null && y(t, ["setup", "sessionResumption"],
|
22708
|
+
t !== void 0 && b != null && y(t, ["setup", "sessionResumption"], n9(i, b));
|
22709
22709
|
const p = m(e, [
|
22710
22710
|
"inputAudioTranscription"
|
22711
22711
|
]);
|
@@ -22717,15 +22717,15 @@ function mB(i, e, t) {
|
|
22717
22717
|
const T = m(e, [
|
22718
22718
|
"realtimeInputConfig"
|
22719
22719
|
]);
|
22720
|
-
t !== void 0 && T != null && y(t, ["setup", "realtimeInputConfig"],
|
22720
|
+
t !== void 0 && T != null && y(t, ["setup", "realtimeInputConfig"], a9(i, T));
|
22721
22721
|
const C = m(e, [
|
22722
22722
|
"contextWindowCompression"
|
22723
22723
|
]);
|
22724
|
-
t !== void 0 && C != null && y(t, ["setup", "contextWindowCompression"],
|
22724
|
+
t !== void 0 && C != null && y(t, ["setup", "contextWindowCompression"], f9(i, C));
|
22725
22725
|
const A = m(e, ["proactivity"]);
|
22726
|
-
return t !== void 0 && A != null && y(t, ["setup", "proactivity"],
|
22726
|
+
return t !== void 0 && A != null && y(t, ["setup", "proactivity"], h9(i, A)), n;
|
22727
22727
|
}
|
22728
|
-
function
|
22728
|
+
function g9(i, e, t) {
|
22729
22729
|
const n = {}, r = m(e, [
|
22730
22730
|
"generationConfig"
|
22731
22731
|
]);
|
@@ -22763,12 +22763,12 @@ function gB(i, e, t) {
|
|
22763
22763
|
const w = m(e, ["tools"]);
|
22764
22764
|
if (t !== void 0 && w != null) {
|
22765
22765
|
let M = bc(i, w);
|
22766
|
-
Array.isArray(M) && (M = M.map(($) =>
|
22766
|
+
Array.isArray(M) && (M = M.map(($) => r9(i, wc(i, $)))), y(t, ["setup", "tools"], M);
|
22767
22767
|
}
|
22768
22768
|
const b = m(e, [
|
22769
22769
|
"sessionResumption"
|
22770
22770
|
]);
|
22771
|
-
t !== void 0 && b != null && y(t, ["setup", "sessionResumption"],
|
22771
|
+
t !== void 0 && b != null && y(t, ["setup", "sessionResumption"], i9(i, b));
|
22772
22772
|
const p = m(e, [
|
22773
22773
|
"inputAudioTranscription"
|
22774
22774
|
]);
|
@@ -22780,39 +22780,39 @@ function gB(i, e, t) {
|
|
22780
22780
|
const T = m(e, [
|
22781
22781
|
"realtimeInputConfig"
|
22782
22782
|
]);
|
22783
|
-
t !== void 0 && T != null && y(t, ["setup", "realtimeInputConfig"],
|
22783
|
+
t !== void 0 && T != null && y(t, ["setup", "realtimeInputConfig"], l9(i, T));
|
22784
22784
|
const C = m(e, [
|
22785
22785
|
"contextWindowCompression"
|
22786
22786
|
]);
|
22787
|
-
t !== void 0 && C != null && y(t, ["setup", "contextWindowCompression"],
|
22787
|
+
t !== void 0 && C != null && y(t, ["setup", "contextWindowCompression"], d9(i, C));
|
22788
22788
|
const A = m(e, ["proactivity"]);
|
22789
|
-
return t !== void 0 && A != null && y(t, ["setup", "proactivity"],
|
22789
|
+
return t !== void 0 && A != null && y(t, ["setup", "proactivity"], p9(i, A)), n;
|
22790
22790
|
}
|
22791
|
-
function
|
22791
|
+
function v9(i, e) {
|
22792
22792
|
const t = {}, n = m(e, ["model"]);
|
22793
22793
|
n != null && y(t, ["setup", "model"], Ot(i, n));
|
22794
22794
|
const r = m(e, ["config"]);
|
22795
|
-
return r != null && y(t, ["config"],
|
22795
|
+
return r != null && y(t, ["config"], m9(i, r, t)), t;
|
22796
22796
|
}
|
22797
|
-
function
|
22797
|
+
function y9(i, e) {
|
22798
22798
|
const t = {}, n = m(e, ["model"]);
|
22799
22799
|
n != null && y(t, ["setup", "model"], Ot(i, n));
|
22800
22800
|
const r = m(e, ["config"]);
|
22801
|
-
return r != null && y(t, ["config"],
|
22801
|
+
return r != null && y(t, ["config"], g9(i, r, t)), t;
|
22802
22802
|
}
|
22803
|
-
function
|
22803
|
+
function _9() {
|
22804
22804
|
return {};
|
22805
22805
|
}
|
22806
|
-
function
|
22806
|
+
function w9() {
|
22807
22807
|
return {};
|
22808
22808
|
}
|
22809
|
-
function
|
22809
|
+
function b9() {
|
22810
22810
|
return {};
|
22811
22811
|
}
|
22812
|
-
function
|
22812
|
+
function S9() {
|
22813
22813
|
return {};
|
22814
22814
|
}
|
22815
|
-
function
|
22815
|
+
function E9(i, e) {
|
22816
22816
|
const t = {}, n = m(e, ["media"]);
|
22817
22817
|
n != null && y(t, ["mediaChunks"], CC(i, n));
|
22818
22818
|
const r = m(e, ["audio"]);
|
@@ -22826,9 +22826,9 @@ function EB(i, e) {
|
|
22826
22826
|
const a = m(e, ["text"]);
|
22827
22827
|
return a != null && y(t, ["text"], a), m(e, [
|
22828
22828
|
"activityStart"
|
22829
|
-
]) != null && y(t, ["activityStart"],
|
22829
|
+
]) != null && y(t, ["activityStart"], _9()), m(e, ["activityEnd"]) != null && y(t, ["activityEnd"], b9()), t;
|
22830
22830
|
}
|
22831
|
-
function
|
22831
|
+
function T9(i, e) {
|
22832
22832
|
const t = {}, n = m(e, ["media"]);
|
22833
22833
|
if (n != null && y(t, ["mediaChunks"], CC(i, n)), m(e, ["audio"]) !== void 0)
|
22834
22834
|
throw new Error("audio parameter is not supported in Vertex AI.");
|
@@ -22841,7 +22841,7 @@ function TB(i, e) {
|
|
22841
22841
|
throw new Error("text parameter is not supported in Vertex AI.");
|
22842
22842
|
return m(e, [
|
22843
22843
|
"activityStart"
|
22844
|
-
]) != null && y(t, ["activityStart"],
|
22844
|
+
]) != null && y(t, ["activityStart"], w9()), m(e, ["activityEnd"]) != null && y(t, ["activityEnd"], S9()), t;
|
22845
22845
|
}
|
22846
22846
|
function DC(i, e) {
|
22847
22847
|
const t = {}, n = m(e, ["text"]);
|
@@ -22849,7 +22849,7 @@ function DC(i, e) {
|
|
22849
22849
|
const r = m(e, ["weight"]);
|
22850
22850
|
return r != null && y(t, ["weight"], r), t;
|
22851
22851
|
}
|
22852
|
-
function
|
22852
|
+
function C9(i, e) {
|
22853
22853
|
const t = {}, n = m(e, [
|
22854
22854
|
"weightedPrompts"
|
22855
22855
|
]);
|
@@ -22889,7 +22889,7 @@ function FC(i, e) {
|
|
22889
22889
|
]);
|
22890
22890
|
return _ != null && y(t, ["musicGenerationMode"], _), t;
|
22891
22891
|
}
|
22892
|
-
function
|
22892
|
+
function A9(i, e) {
|
22893
22893
|
const t = {}, n = m(e, [
|
22894
22894
|
"musicGenerationConfig"
|
22895
22895
|
]);
|
@@ -22925,13 +22925,13 @@ function Em(i, e) {
|
|
22925
22925
|
]);
|
22926
22926
|
return s != null && y(t, ["playbackControl"], s), t;
|
22927
22927
|
}
|
22928
|
-
function
|
22928
|
+
function P9() {
|
22929
22929
|
return {};
|
22930
22930
|
}
|
22931
|
-
function
|
22931
|
+
function x9() {
|
22932
22932
|
return {};
|
22933
22933
|
}
|
22934
|
-
function
|
22934
|
+
function I9(i, e) {
|
22935
22935
|
const t = {}, n = m(e, ["fps"]);
|
22936
22936
|
n != null && y(t, ["fps"], n);
|
22937
22937
|
const r = m(e, ["endOffset"]);
|
@@ -22939,7 +22939,7 @@ function IB(i, e) {
|
|
22939
22939
|
const o = m(e, ["startOffset"]);
|
22940
22940
|
return o != null && y(t, ["startOffset"], o), t;
|
22941
22941
|
}
|
22942
|
-
function
|
22942
|
+
function R9(i, e) {
|
22943
22943
|
const t = {}, n = m(e, ["fps"]);
|
22944
22944
|
n != null && y(t, ["fps"], n);
|
22945
22945
|
const r = m(e, ["endOffset"]);
|
@@ -22947,13 +22947,13 @@ function RB(i, e) {
|
|
22947
22947
|
const o = m(e, ["startOffset"]);
|
22948
22948
|
return o != null && y(t, ["startOffset"], o), t;
|
22949
22949
|
}
|
22950
|
-
function
|
22950
|
+
function k9(i, e) {
|
22951
22951
|
const t = {}, n = m(e, ["data"]);
|
22952
22952
|
n != null && y(t, ["data"], n);
|
22953
22953
|
const r = m(e, ["mimeType"]);
|
22954
22954
|
return r != null && y(t, ["mimeType"], r), t;
|
22955
22955
|
}
|
22956
|
-
function
|
22956
|
+
function O9(i, e) {
|
22957
22957
|
const t = {}, n = m(e, ["displayName"]);
|
22958
22958
|
n != null && y(t, ["displayName"], n);
|
22959
22959
|
const r = m(e, ["data"]);
|
@@ -22961,15 +22961,15 @@ function OB(i, e) {
|
|
22961
22961
|
const o = m(e, ["mimeType"]);
|
22962
22962
|
return o != null && y(t, ["mimeType"], o), t;
|
22963
22963
|
}
|
22964
|
-
function
|
22964
|
+
function M9(i, e) {
|
22965
22965
|
const t = {}, n = m(e, [
|
22966
22966
|
"videoMetadata"
|
22967
22967
|
]);
|
22968
|
-
n != null && y(t, ["videoMetadata"],
|
22968
|
+
n != null && y(t, ["videoMetadata"], I9(i, n));
|
22969
22969
|
const r = m(e, ["thought"]);
|
22970
22970
|
r != null && y(t, ["thought"], r);
|
22971
22971
|
const o = m(e, ["inlineData"]);
|
22972
|
-
o != null && y(t, ["inlineData"],
|
22972
|
+
o != null && y(t, ["inlineData"], k9(i, o));
|
22973
22973
|
const s = m(e, [
|
22974
22974
|
"codeExecutionResult"
|
22975
22975
|
]);
|
@@ -22989,15 +22989,15 @@ function MB(i, e) {
|
|
22989
22989
|
const h = m(e, ["text"]);
|
22990
22990
|
return h != null && y(t, ["text"], h), t;
|
22991
22991
|
}
|
22992
|
-
function
|
22992
|
+
function L9(i, e) {
|
22993
22993
|
const t = {}, n = m(e, [
|
22994
22994
|
"videoMetadata"
|
22995
22995
|
]);
|
22996
|
-
n != null && y(t, ["videoMetadata"],
|
22996
|
+
n != null && y(t, ["videoMetadata"], R9(i, n));
|
22997
22997
|
const r = m(e, ["thought"]);
|
22998
22998
|
r != null && y(t, ["thought"], r);
|
22999
22999
|
const o = m(e, ["inlineData"]);
|
23000
|
-
o != null && y(t, ["inlineData"],
|
23000
|
+
o != null && y(t, ["inlineData"], O9(i, o));
|
23001
23001
|
const s = m(e, [
|
23002
23002
|
"codeExecutionResult"
|
23003
23003
|
]);
|
@@ -23017,20 +23017,20 @@ function LB(i, e) {
|
|
23017
23017
|
const h = m(e, ["text"]);
|
23018
23018
|
return h != null && y(t, ["text"], h), t;
|
23019
23019
|
}
|
23020
|
-
function
|
23020
|
+
function N9(i, e) {
|
23021
23021
|
const t = {}, n = m(e, ["parts"]);
|
23022
23022
|
if (n != null) {
|
23023
23023
|
let o = n;
|
23024
|
-
Array.isArray(o) && (o = o.map((s) =>
|
23024
|
+
Array.isArray(o) && (o = o.map((s) => M9(i, s))), y(t, ["parts"], o);
|
23025
23025
|
}
|
23026
23026
|
const r = m(e, ["role"]);
|
23027
23027
|
return r != null && y(t, ["role"], r), t;
|
23028
23028
|
}
|
23029
|
-
function
|
23029
|
+
function D9(i, e) {
|
23030
23030
|
const t = {}, n = m(e, ["parts"]);
|
23031
23031
|
if (n != null) {
|
23032
23032
|
let o = n;
|
23033
|
-
Array.isArray(o) && (o = o.map((s) =>
|
23033
|
+
Array.isArray(o) && (o = o.map((s) => L9(i, s))), y(t, ["parts"], o);
|
23034
23034
|
}
|
23035
23035
|
const r = m(e, ["role"]);
|
23036
23036
|
return r != null && y(t, ["role"], r), t;
|
@@ -23047,7 +23047,7 @@ function JS(i, e) {
|
|
23047
23047
|
const r = m(e, ["finished"]);
|
23048
23048
|
return r != null && y(t, ["finished"], r), t;
|
23049
23049
|
}
|
23050
|
-
function
|
23050
|
+
function F9(i, e) {
|
23051
23051
|
const t = {}, n = m(e, ["retrievedUrl"]);
|
23052
23052
|
n != null && y(t, ["retrievedUrl"], n);
|
23053
23053
|
const r = m(e, [
|
@@ -23055,17 +23055,17 @@ function FB(i, e) {
|
|
23055
23055
|
]);
|
23056
23056
|
return r != null && y(t, ["urlRetrievalStatus"], r), t;
|
23057
23057
|
}
|
23058
|
-
function $
|
23058
|
+
function $9(i, e) {
|
23059
23059
|
const t = {}, n = m(e, ["urlMetadata"]);
|
23060
23060
|
if (n != null) {
|
23061
23061
|
let r = n;
|
23062
|
-
Array.isArray(r) && (r = r.map((o) =>
|
23062
|
+
Array.isArray(r) && (r = r.map((o) => F9(i, o))), y(t, ["urlMetadata"], r);
|
23063
23063
|
}
|
23064
23064
|
return t;
|
23065
23065
|
}
|
23066
|
-
function
|
23066
|
+
function U9(i, e) {
|
23067
23067
|
const t = {}, n = m(e, ["modelTurn"]);
|
23068
|
-
n != null && y(t, ["modelTurn"],
|
23068
|
+
n != null && y(t, ["modelTurn"], N9(i, n));
|
23069
23069
|
const r = m(e, ["turnComplete"]);
|
23070
23070
|
r != null && y(t, ["turnComplete"], r);
|
23071
23071
|
const o = m(e, ["interrupted"]);
|
@@ -23089,11 +23089,11 @@ function UB(i, e) {
|
|
23089
23089
|
const d = m(e, [
|
23090
23090
|
"urlContextMetadata"
|
23091
23091
|
]);
|
23092
|
-
return d != null && y(t, ["urlContextMetadata"], $
|
23092
|
+
return d != null && y(t, ["urlContextMetadata"], $9(i, d)), t;
|
23093
23093
|
}
|
23094
|
-
function
|
23094
|
+
function q9(i, e) {
|
23095
23095
|
const t = {}, n = m(e, ["modelTurn"]);
|
23096
|
-
n != null && y(t, ["modelTurn"],
|
23096
|
+
n != null && y(t, ["modelTurn"], D9(i, n));
|
23097
23097
|
const r = m(e, ["turnComplete"]);
|
23098
23098
|
r != null && y(t, ["turnComplete"], r);
|
23099
23099
|
const o = m(e, ["interrupted"]);
|
@@ -23115,7 +23115,7 @@ function qB(i, e) {
|
|
23115
23115
|
]);
|
23116
23116
|
return c != null && y(t, ["outputTranscription"], JS(i, c)), t;
|
23117
23117
|
}
|
23118
|
-
function
|
23118
|
+
function B9(i, e) {
|
23119
23119
|
const t = {}, n = m(e, ["id"]);
|
23120
23120
|
n != null && y(t, ["id"], n);
|
23121
23121
|
const r = m(e, ["args"]);
|
@@ -23123,37 +23123,37 @@ function BB(i, e) {
|
|
23123
23123
|
const o = m(e, ["name"]);
|
23124
23124
|
return o != null && y(t, ["name"], o), t;
|
23125
23125
|
}
|
23126
|
-
function
|
23126
|
+
function V9(i, e) {
|
23127
23127
|
const t = {}, n = m(e, ["args"]);
|
23128
23128
|
n != null && y(t, ["args"], n);
|
23129
23129
|
const r = m(e, ["name"]);
|
23130
23130
|
return r != null && y(t, ["name"], r), t;
|
23131
23131
|
}
|
23132
|
-
function
|
23132
|
+
function H9(i, e) {
|
23133
23133
|
const t = {}, n = m(e, [
|
23134
23134
|
"functionCalls"
|
23135
23135
|
]);
|
23136
23136
|
if (n != null) {
|
23137
23137
|
let r = n;
|
23138
|
-
Array.isArray(r) && (r = r.map((o) =>
|
23138
|
+
Array.isArray(r) && (r = r.map((o) => B9(i, o))), y(t, ["functionCalls"], r);
|
23139
23139
|
}
|
23140
23140
|
return t;
|
23141
23141
|
}
|
23142
|
-
function
|
23142
|
+
function G9(i, e) {
|
23143
23143
|
const t = {}, n = m(e, [
|
23144
23144
|
"functionCalls"
|
23145
23145
|
]);
|
23146
23146
|
if (n != null) {
|
23147
23147
|
let r = n;
|
23148
|
-
Array.isArray(r) && (r = r.map((o) =>
|
23148
|
+
Array.isArray(r) && (r = r.map((o) => V9(i, o))), y(t, ["functionCalls"], r);
|
23149
23149
|
}
|
23150
23150
|
return t;
|
23151
23151
|
}
|
23152
|
-
function
|
23152
|
+
function W9(i, e) {
|
23153
23153
|
const t = {}, n = m(e, ["ids"]);
|
23154
23154
|
return n != null && y(t, ["ids"], n), t;
|
23155
23155
|
}
|
23156
|
-
function
|
23156
|
+
function z9(i, e) {
|
23157
23157
|
const t = {}, n = m(e, ["ids"]);
|
23158
23158
|
return n != null && y(t, ["ids"], n), t;
|
23159
23159
|
}
|
@@ -23169,7 +23169,7 @@ function nu(i, e) {
|
|
23169
23169
|
const r = m(e, ["tokenCount"]);
|
23170
23170
|
return r != null && y(t, ["tokenCount"], r), t;
|
23171
23171
|
}
|
23172
|
-
function
|
23172
|
+
function K9(i, e) {
|
23173
23173
|
const t = {}, n = m(e, [
|
23174
23174
|
"promptTokenCount"
|
23175
23175
|
]);
|
@@ -23224,7 +23224,7 @@ function KB(i, e) {
|
|
23224
23224
|
}
|
23225
23225
|
return t;
|
23226
23226
|
}
|
23227
|
-
function
|
23227
|
+
function J9(i, e) {
|
23228
23228
|
const t = {}, n = m(e, [
|
23229
23229
|
"promptTokenCount"
|
23230
23230
|
]);
|
@@ -23280,15 +23280,15 @@ function JB(i, e) {
|
|
23280
23280
|
const v = m(e, ["trafficType"]);
|
23281
23281
|
return v != null && y(t, ["trafficType"], v), t;
|
23282
23282
|
}
|
23283
|
-
function
|
23283
|
+
function Y9(i, e) {
|
23284
23284
|
const t = {}, n = m(e, ["timeLeft"]);
|
23285
23285
|
return n != null && y(t, ["timeLeft"], n), t;
|
23286
23286
|
}
|
23287
|
-
function
|
23287
|
+
function j9(i, e) {
|
23288
23288
|
const t = {}, n = m(e, ["timeLeft"]);
|
23289
23289
|
return n != null && y(t, ["timeLeft"], n), t;
|
23290
23290
|
}
|
23291
|
-
function
|
23291
|
+
function Z9(i, e) {
|
23292
23292
|
const t = {}, n = m(e, ["newHandle"]);
|
23293
23293
|
n != null && y(t, ["newHandle"], n);
|
23294
23294
|
const r = m(e, ["resumable"]);
|
@@ -23298,7 +23298,7 @@ function ZB(i, e) {
|
|
23298
23298
|
]);
|
23299
23299
|
return o != null && y(t, ["lastConsumedClientMessageIndex"], o), t;
|
23300
23300
|
}
|
23301
|
-
function
|
23301
|
+
function Q9(i, e) {
|
23302
23302
|
const t = {}, n = m(e, ["newHandle"]);
|
23303
23303
|
n != null && y(t, ["newHandle"], n);
|
23304
23304
|
const r = m(e, ["resumable"]);
|
@@ -23308,78 +23308,78 @@ function QB(i, e) {
|
|
23308
23308
|
]);
|
23309
23309
|
return o != null && y(t, ["lastConsumedClientMessageIndex"], o), t;
|
23310
23310
|
}
|
23311
|
-
function
|
23311
|
+
function X9(i, e) {
|
23312
23312
|
const t = {};
|
23313
23313
|
m(e, [
|
23314
23314
|
"setupComplete"
|
23315
|
-
]) != null && y(t, ["setupComplete"],
|
23315
|
+
]) != null && y(t, ["setupComplete"], P9());
|
23316
23316
|
const r = m(e, [
|
23317
23317
|
"serverContent"
|
23318
23318
|
]);
|
23319
|
-
r != null && y(t, ["serverContent"],
|
23319
|
+
r != null && y(t, ["serverContent"], U9(i, r));
|
23320
23320
|
const o = m(e, ["toolCall"]);
|
23321
|
-
o != null && y(t, ["toolCall"],
|
23321
|
+
o != null && y(t, ["toolCall"], H9(i, o));
|
23322
23322
|
const s = m(e, [
|
23323
23323
|
"toolCallCancellation"
|
23324
23324
|
]);
|
23325
|
-
s != null && y(t, ["toolCallCancellation"],
|
23325
|
+
s != null && y(t, ["toolCallCancellation"], W9(i, s));
|
23326
23326
|
const a = m(e, [
|
23327
23327
|
"usageMetadata"
|
23328
23328
|
]);
|
23329
|
-
a != null && y(t, ["usageMetadata"],
|
23329
|
+
a != null && y(t, ["usageMetadata"], K9(i, a));
|
23330
23330
|
const u = m(e, ["goAway"]);
|
23331
|
-
u != null && y(t, ["goAway"],
|
23331
|
+
u != null && y(t, ["goAway"], Y9(i, u));
|
23332
23332
|
const c = m(e, [
|
23333
23333
|
"sessionResumptionUpdate"
|
23334
23334
|
]);
|
23335
|
-
return c != null && y(t, ["sessionResumptionUpdate"],
|
23335
|
+
return c != null && y(t, ["sessionResumptionUpdate"], Z9(i, c)), t;
|
23336
23336
|
}
|
23337
|
-
function
|
23337
|
+
function eB(i, e) {
|
23338
23338
|
const t = {};
|
23339
23339
|
m(e, [
|
23340
23340
|
"setupComplete"
|
23341
|
-
]) != null && y(t, ["setupComplete"],
|
23341
|
+
]) != null && y(t, ["setupComplete"], x9());
|
23342
23342
|
const r = m(e, [
|
23343
23343
|
"serverContent"
|
23344
23344
|
]);
|
23345
|
-
r != null && y(t, ["serverContent"],
|
23345
|
+
r != null && y(t, ["serverContent"], q9(i, r));
|
23346
23346
|
const o = m(e, ["toolCall"]);
|
23347
|
-
o != null && y(t, ["toolCall"],
|
23347
|
+
o != null && y(t, ["toolCall"], G9(i, o));
|
23348
23348
|
const s = m(e, [
|
23349
23349
|
"toolCallCancellation"
|
23350
23350
|
]);
|
23351
|
-
s != null && y(t, ["toolCallCancellation"],
|
23351
|
+
s != null && y(t, ["toolCallCancellation"], z9(i, s));
|
23352
23352
|
const a = m(e, [
|
23353
23353
|
"usageMetadata"
|
23354
23354
|
]);
|
23355
|
-
a != null && y(t, ["usageMetadata"],
|
23355
|
+
a != null && y(t, ["usageMetadata"], J9(i, a));
|
23356
23356
|
const u = m(e, ["goAway"]);
|
23357
|
-
u != null && y(t, ["goAway"],
|
23357
|
+
u != null && y(t, ["goAway"], j9(i, u));
|
23358
23358
|
const c = m(e, [
|
23359
23359
|
"sessionResumptionUpdate"
|
23360
23360
|
]);
|
23361
|
-
return c != null && y(t, ["sessionResumptionUpdate"],
|
23361
|
+
return c != null && y(t, ["sessionResumptionUpdate"], Q9(i, c)), t;
|
23362
23362
|
}
|
23363
|
-
function
|
23363
|
+
function tB() {
|
23364
23364
|
return {};
|
23365
23365
|
}
|
23366
|
-
function
|
23366
|
+
function rB(i, e) {
|
23367
23367
|
const t = {}, n = m(e, ["text"]);
|
23368
23368
|
n != null && y(t, ["text"], n);
|
23369
23369
|
const r = m(e, ["weight"]);
|
23370
23370
|
return r != null && y(t, ["weight"], r), t;
|
23371
23371
|
}
|
23372
|
-
function
|
23372
|
+
function nB(i, e) {
|
23373
23373
|
const t = {}, n = m(e, [
|
23374
23374
|
"weightedPrompts"
|
23375
23375
|
]);
|
23376
23376
|
if (n != null) {
|
23377
23377
|
let r = n;
|
23378
|
-
Array.isArray(r) && (r = r.map((o) =>
|
23378
|
+
Array.isArray(r) && (r = r.map((o) => rB(i, o))), y(t, ["weightedPrompts"], r);
|
23379
23379
|
}
|
23380
23380
|
return t;
|
23381
23381
|
}
|
23382
|
-
function
|
23382
|
+
function iB(i, e) {
|
23383
23383
|
const t = {}, n = m(e, ["temperature"]);
|
23384
23384
|
n != null && y(t, ["temperature"], n);
|
23385
23385
|
const r = m(e, ["topK"]);
|
@@ -23409,17 +23409,17 @@ function i9(i, e) {
|
|
23409
23409
|
]);
|
23410
23410
|
return _ != null && y(t, ["musicGenerationMode"], _), t;
|
23411
23411
|
}
|
23412
|
-
function
|
23412
|
+
function oB(i, e) {
|
23413
23413
|
const t = {}, n = m(e, [
|
23414
23414
|
"clientContent"
|
23415
23415
|
]);
|
23416
|
-
n != null && y(t, ["clientContent"],
|
23416
|
+
n != null && y(t, ["clientContent"], nB(i, n));
|
23417
23417
|
const r = m(e, [
|
23418
23418
|
"musicGenerationConfig"
|
23419
23419
|
]);
|
23420
|
-
return r != null && y(t, ["musicGenerationConfig"],
|
23420
|
+
return r != null && y(t, ["musicGenerationConfig"], iB(i, r)), t;
|
23421
23421
|
}
|
23422
|
-
function
|
23422
|
+
function sB(i, e) {
|
23423
23423
|
const t = {}, n = m(e, ["data"]);
|
23424
23424
|
n != null && y(t, ["data"], n);
|
23425
23425
|
const r = m(e, ["mimeType"]);
|
@@ -23427,17 +23427,17 @@ function s9(i, e) {
|
|
23427
23427
|
const o = m(e, [
|
23428
23428
|
"sourceMetadata"
|
23429
23429
|
]);
|
23430
|
-
return o != null && y(t, ["sourceMetadata"],
|
23430
|
+
return o != null && y(t, ["sourceMetadata"], oB(i, o)), t;
|
23431
23431
|
}
|
23432
|
-
function
|
23432
|
+
function aB(i, e) {
|
23433
23433
|
const t = {}, n = m(e, ["audioChunks"]);
|
23434
23434
|
if (n != null) {
|
23435
23435
|
let r = n;
|
23436
|
-
Array.isArray(r) && (r = r.map((o) =>
|
23436
|
+
Array.isArray(r) && (r = r.map((o) => sB(i, o))), y(t, ["audioChunks"], r);
|
23437
23437
|
}
|
23438
23438
|
return t;
|
23439
23439
|
}
|
23440
|
-
function
|
23440
|
+
function lB(i, e) {
|
23441
23441
|
const t = {}, n = m(e, ["text"]);
|
23442
23442
|
n != null && y(t, ["text"], n);
|
23443
23443
|
const r = m(e, [
|
@@ -23445,26 +23445,26 @@ function l9(i, e) {
|
|
23445
23445
|
]);
|
23446
23446
|
return r != null && y(t, ["filteredReason"], r), t;
|
23447
23447
|
}
|
23448
|
-
function
|
23448
|
+
function uB(i, e) {
|
23449
23449
|
const t = {};
|
23450
23450
|
m(e, [
|
23451
23451
|
"setupComplete"
|
23452
|
-
]) != null && y(t, ["setupComplete"],
|
23452
|
+
]) != null && y(t, ["setupComplete"], tB());
|
23453
23453
|
const r = m(e, [
|
23454
23454
|
"serverContent"
|
23455
23455
|
]);
|
23456
|
-
r != null && y(t, ["serverContent"],
|
23456
|
+
r != null && y(t, ["serverContent"], aB(i, r));
|
23457
23457
|
const o = m(e, [
|
23458
23458
|
"filteredPrompt"
|
23459
23459
|
]);
|
23460
|
-
return o != null && y(t, ["filteredPrompt"],
|
23460
|
+
return o != null && y(t, ["filteredPrompt"], lB(i, o)), t;
|
23461
23461
|
}
|
23462
23462
|
/**
|
23463
23463
|
* @license
|
23464
23464
|
* Copyright 2025 Google LLC
|
23465
23465
|
* SPDX-License-Identifier: Apache-2.0
|
23466
23466
|
*/
|
23467
|
-
function
|
23467
|
+
function cB(i, e) {
|
23468
23468
|
const t = {}, n = m(e, ["fps"]);
|
23469
23469
|
n != null && y(t, ["fps"], n);
|
23470
23470
|
const r = m(e, ["endOffset"]);
|
@@ -23472,7 +23472,7 @@ function c9(i, e) {
|
|
23472
23472
|
const o = m(e, ["startOffset"]);
|
23473
23473
|
return o != null && y(t, ["startOffset"], o), t;
|
23474
23474
|
}
|
23475
|
-
function
|
23475
|
+
function fB(i, e) {
|
23476
23476
|
const t = {};
|
23477
23477
|
if (m(e, ["displayName"]) !== void 0)
|
23478
23478
|
throw new Error("displayName parameter is not supported in Gemini API.");
|
@@ -23481,15 +23481,15 @@ function f9(i, e) {
|
|
23481
23481
|
const r = m(e, ["mimeType"]);
|
23482
23482
|
return r != null && y(t, ["mimeType"], r), t;
|
23483
23483
|
}
|
23484
|
-
function
|
23484
|
+
function dB(i, e) {
|
23485
23485
|
const t = {}, n = m(e, [
|
23486
23486
|
"videoMetadata"
|
23487
23487
|
]);
|
23488
|
-
n != null && y(t, ["videoMetadata"],
|
23488
|
+
n != null && y(t, ["videoMetadata"], cB(i, n));
|
23489
23489
|
const r = m(e, ["thought"]);
|
23490
23490
|
r != null && y(t, ["thought"], r);
|
23491
23491
|
const o = m(e, ["inlineData"]);
|
23492
|
-
o != null && y(t, ["inlineData"],
|
23492
|
+
o != null && y(t, ["inlineData"], fB(i, o));
|
23493
23493
|
const s = m(e, [
|
23494
23494
|
"codeExecutionResult"
|
23495
23495
|
]);
|
@@ -23513,12 +23513,12 @@ function Ec(i, e) {
|
|
23513
23513
|
const t = {}, n = m(e, ["parts"]);
|
23514
23514
|
if (n != null) {
|
23515
23515
|
let o = n;
|
23516
|
-
Array.isArray(o) && (o = o.map((s) =>
|
23516
|
+
Array.isArray(o) && (o = o.map((s) => dB(i, s))), y(t, ["parts"], o);
|
23517
23517
|
}
|
23518
23518
|
const r = m(e, ["role"]);
|
23519
23519
|
return r != null && y(t, ["role"], r), t;
|
23520
23520
|
}
|
23521
|
-
function
|
23521
|
+
function hB(i, e) {
|
23522
23522
|
const t = {};
|
23523
23523
|
if (m(e, ["method"]) !== void 0)
|
23524
23524
|
throw new Error("method parameter is not supported in Gemini API.");
|
@@ -23527,7 +23527,7 @@ function h9(i, e) {
|
|
23527
23527
|
const r = m(e, ["threshold"]);
|
23528
23528
|
return r != null && y(t, ["threshold"], r), t;
|
23529
23529
|
}
|
23530
|
-
function
|
23530
|
+
function pB(i, e) {
|
23531
23531
|
const t = {}, n = m(e, ["behavior"]);
|
23532
23532
|
n != null && y(t, ["behavior"], n);
|
23533
23533
|
const r = m(e, ["description"]);
|
@@ -23539,19 +23539,19 @@ function p9(i, e) {
|
|
23539
23539
|
const a = m(e, ["response"]);
|
23540
23540
|
return a != null && y(t, ["response"], a), t;
|
23541
23541
|
}
|
23542
|
-
function
|
23542
|
+
function mB(i, e) {
|
23543
23543
|
const t = {}, n = m(e, ["startTime"]);
|
23544
23544
|
n != null && y(t, ["startTime"], n);
|
23545
23545
|
const r = m(e, ["endTime"]);
|
23546
23546
|
return r != null && y(t, ["endTime"], r), t;
|
23547
23547
|
}
|
23548
|
-
function
|
23548
|
+
function gB(i, e) {
|
23549
23549
|
const t = {}, n = m(e, [
|
23550
23550
|
"timeRangeFilter"
|
23551
23551
|
]);
|
23552
|
-
return n != null && y(t, ["timeRangeFilter"],
|
23552
|
+
return n != null && y(t, ["timeRangeFilter"], mB(i, n)), t;
|
23553
23553
|
}
|
23554
|
-
function
|
23554
|
+
function vB(i, e) {
|
23555
23555
|
const t = {}, n = m(e, ["mode"]);
|
23556
23556
|
n != null && y(t, ["mode"], n);
|
23557
23557
|
const r = m(e, [
|
@@ -23559,41 +23559,41 @@ function v9(i, e) {
|
|
23559
23559
|
]);
|
23560
23560
|
return r != null && y(t, ["dynamicThreshold"], r), t;
|
23561
23561
|
}
|
23562
|
-
function
|
23562
|
+
function yB(i, e) {
|
23563
23563
|
const t = {}, n = m(e, [
|
23564
23564
|
"dynamicRetrievalConfig"
|
23565
23565
|
]);
|
23566
|
-
return n != null && y(t, ["dynamicRetrievalConfig"],
|
23566
|
+
return n != null && y(t, ["dynamicRetrievalConfig"], vB(i, n)), t;
|
23567
23567
|
}
|
23568
|
-
function
|
23568
|
+
function _B() {
|
23569
23569
|
return {};
|
23570
23570
|
}
|
23571
|
-
function
|
23571
|
+
function wB(i, e) {
|
23572
23572
|
const t = {}, n = m(e, [
|
23573
23573
|
"functionDeclarations"
|
23574
23574
|
]);
|
23575
23575
|
if (n != null) {
|
23576
23576
|
let u = n;
|
23577
|
-
Array.isArray(u) && (u = u.map((c) =>
|
23577
|
+
Array.isArray(u) && (u = u.map((c) => pB(i, c))), y(t, ["functionDeclarations"], u);
|
23578
23578
|
}
|
23579
23579
|
if (m(e, ["retrieval"]) !== void 0)
|
23580
23580
|
throw new Error("retrieval parameter is not supported in Gemini API.");
|
23581
23581
|
const r = m(e, ["googleSearch"]);
|
23582
|
-
r != null && y(t, ["googleSearch"],
|
23582
|
+
r != null && y(t, ["googleSearch"], gB(i, r));
|
23583
23583
|
const o = m(e, [
|
23584
23584
|
"googleSearchRetrieval"
|
23585
23585
|
]);
|
23586
|
-
if (o != null && y(t, ["googleSearchRetrieval"],
|
23586
|
+
if (o != null && y(t, ["googleSearchRetrieval"], yB(i, o)), m(e, ["enterpriseWebSearch"]) !== void 0)
|
23587
23587
|
throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
|
23588
23588
|
if (m(e, ["googleMaps"]) !== void 0)
|
23589
23589
|
throw new Error("googleMaps parameter is not supported in Gemini API.");
|
23590
|
-
m(e, ["urlContext"]) != null && y(t, ["urlContext"],
|
23590
|
+
m(e, ["urlContext"]) != null && y(t, ["urlContext"], _B());
|
23591
23591
|
const a = m(e, [
|
23592
23592
|
"codeExecution"
|
23593
23593
|
]);
|
23594
23594
|
return a != null && y(t, ["codeExecution"], a), t;
|
23595
23595
|
}
|
23596
|
-
function
|
23596
|
+
function bB(i, e) {
|
23597
23597
|
const t = {}, n = m(e, ["mode"]);
|
23598
23598
|
n != null && y(t, ["mode"], n);
|
23599
23599
|
const r = m(e, [
|
@@ -23601,27 +23601,27 @@ function b9(i, e) {
|
|
23601
23601
|
]);
|
23602
23602
|
return r != null && y(t, ["allowedFunctionNames"], r), t;
|
23603
23603
|
}
|
23604
|
-
function
|
23604
|
+
function SB(i, e) {
|
23605
23605
|
const t = {}, n = m(e, ["latitude"]);
|
23606
23606
|
n != null && y(t, ["latitude"], n);
|
23607
23607
|
const r = m(e, ["longitude"]);
|
23608
23608
|
return r != null && y(t, ["longitude"], r), t;
|
23609
23609
|
}
|
23610
|
-
function
|
23610
|
+
function EB(i, e) {
|
23611
23611
|
const t = {}, n = m(e, ["latLng"]);
|
23612
|
-
return n != null && y(t, ["latLng"],
|
23612
|
+
return n != null && y(t, ["latLng"], SB(i, n)), t;
|
23613
23613
|
}
|
23614
|
-
function
|
23614
|
+
function TB(i, e) {
|
23615
23615
|
const t = {}, n = m(e, [
|
23616
23616
|
"functionCallingConfig"
|
23617
23617
|
]);
|
23618
|
-
n != null && y(t, ["functionCallingConfig"],
|
23618
|
+
n != null && y(t, ["functionCallingConfig"], bB(i, n));
|
23619
23619
|
const r = m(e, [
|
23620
23620
|
"retrievalConfig"
|
23621
23621
|
]);
|
23622
|
-
return r != null && y(t, ["retrievalConfig"],
|
23622
|
+
return r != null && y(t, ["retrievalConfig"], EB(i, r)), t;
|
23623
23623
|
}
|
23624
|
-
function
|
23624
|
+
function CB(i, e) {
|
23625
23625
|
const t = {}, n = m(e, ["voiceName"]);
|
23626
23626
|
return n != null && y(t, ["voiceName"], n), t;
|
23627
23627
|
}
|
@@ -23629,35 +23629,35 @@ function qC(i, e) {
|
|
23629
23629
|
const t = {}, n = m(e, [
|
23630
23630
|
"prebuiltVoiceConfig"
|
23631
23631
|
]);
|
23632
|
-
return n != null && y(t, ["prebuiltVoiceConfig"],
|
23632
|
+
return n != null && y(t, ["prebuiltVoiceConfig"], CB(i, n)), t;
|
23633
23633
|
}
|
23634
|
-
function
|
23634
|
+
function AB(i, e) {
|
23635
23635
|
const t = {}, n = m(e, ["speaker"]);
|
23636
23636
|
n != null && y(t, ["speaker"], n);
|
23637
23637
|
const r = m(e, ["voiceConfig"]);
|
23638
23638
|
return r != null && y(t, ["voiceConfig"], qC(i, r)), t;
|
23639
23639
|
}
|
23640
|
-
function
|
23640
|
+
function PB(i, e) {
|
23641
23641
|
const t = {}, n = m(e, [
|
23642
23642
|
"speakerVoiceConfigs"
|
23643
23643
|
]);
|
23644
23644
|
if (n != null) {
|
23645
23645
|
let r = n;
|
23646
|
-
Array.isArray(r) && (r = r.map((o) =>
|
23646
|
+
Array.isArray(r) && (r = r.map((o) => AB(i, o))), y(t, ["speakerVoiceConfigs"], r);
|
23647
23647
|
}
|
23648
23648
|
return t;
|
23649
23649
|
}
|
23650
|
-
function
|
23650
|
+
function xB(i, e) {
|
23651
23651
|
const t = {}, n = m(e, ["voiceConfig"]);
|
23652
23652
|
n != null && y(t, ["voiceConfig"], qC(i, n));
|
23653
23653
|
const r = m(e, [
|
23654
23654
|
"multiSpeakerVoiceConfig"
|
23655
23655
|
]);
|
23656
|
-
r != null && y(t, ["multiSpeakerVoiceConfig"],
|
23656
|
+
r != null && y(t, ["multiSpeakerVoiceConfig"], PB(i, r));
|
23657
23657
|
const o = m(e, ["languageCode"]);
|
23658
23658
|
return o != null && y(t, ["languageCode"], o), t;
|
23659
23659
|
}
|
23660
|
-
function
|
23660
|
+
function IB(i, e) {
|
23661
23661
|
const t = {}, n = m(e, [
|
23662
23662
|
"includeThoughts"
|
23663
23663
|
]);
|
@@ -23667,7 +23667,7 @@ function I9(i, e) {
|
|
23667
23667
|
]);
|
23668
23668
|
return r != null && y(t, ["thinkingBudget"], r), t;
|
23669
23669
|
}
|
23670
|
-
function
|
23670
|
+
function RB(i, e, t) {
|
23671
23671
|
const n = {}, r = m(e, [
|
23672
23672
|
"systemInstruction"
|
23673
23673
|
]);
|
@@ -23722,15 +23722,15 @@ function R9(i, e, t) {
|
|
23722
23722
|
]);
|
23723
23723
|
if (t !== void 0 && S != null) {
|
23724
23724
|
let O = S;
|
23725
|
-
Array.isArray(O) && (O = O.map((N) =>
|
23725
|
+
Array.isArray(O) && (O = O.map((N) => hB(i, N))), y(t, ["safetySettings"], O);
|
23726
23726
|
}
|
23727
23727
|
const T = m(e, ["tools"]);
|
23728
23728
|
if (t !== void 0 && T != null) {
|
23729
23729
|
let O = bc(i, T);
|
23730
|
-
Array.isArray(O) && (O = O.map((N) =>
|
23730
|
+
Array.isArray(O) && (O = O.map((N) => wB(i, wc(i, N)))), y(t, ["tools"], O);
|
23731
23731
|
}
|
23732
23732
|
const C = m(e, ["toolConfig"]);
|
23733
|
-
if (t !== void 0 && C != null && y(t, ["toolConfig"],
|
23733
|
+
if (t !== void 0 && C != null && y(t, ["toolConfig"], TB(i, C)), m(e, ["labels"]) !== void 0)
|
23734
23734
|
throw new Error("labels parameter is not supported in Gemini API.");
|
23735
23735
|
const A = m(e, [
|
23736
23736
|
"cachedContent"
|
@@ -23745,12 +23745,12 @@ function R9(i, e, t) {
|
|
23745
23745
|
]);
|
23746
23746
|
$ != null && y(n, ["mediaResolution"], $);
|
23747
23747
|
const x = m(e, ["speechConfig"]);
|
23748
|
-
if (x != null && y(n, ["speechConfig"],
|
23748
|
+
if (x != null && y(n, ["speechConfig"], xB(i, xC(i, x))), m(e, ["audioTimestamp"]) !== void 0)
|
23749
23749
|
throw new Error("audioTimestamp parameter is not supported in Gemini API.");
|
23750
23750
|
const I = m(e, [
|
23751
23751
|
"thinkingConfig"
|
23752
23752
|
]);
|
23753
|
-
return I != null && y(n, ["thinkingConfig"],
|
23753
|
+
return I != null && y(n, ["thinkingConfig"], IB(i, I)), n;
|
23754
23754
|
}
|
23755
23755
|
function YS(i, e) {
|
23756
23756
|
const t = {}, n = m(e, ["model"]);
|
@@ -23761,9 +23761,9 @@ function YS(i, e) {
|
|
23761
23761
|
Array.isArray(s) && (s = s.map((a) => Ec(i, a))), y(t, ["contents"], s);
|
23762
23762
|
}
|
23763
23763
|
const o = m(e, ["config"]);
|
23764
|
-
return o != null && y(t, ["generationConfig"],
|
23764
|
+
return o != null && y(t, ["generationConfig"], RB(i, o, t)), t;
|
23765
23765
|
}
|
23766
|
-
function
|
23766
|
+
function kB(i, e, t) {
|
23767
23767
|
const n = {}, r = m(e, ["taskType"]);
|
23768
23768
|
t !== void 0 && r != null && y(t, ["requests[]", "taskType"], r);
|
23769
23769
|
const o = m(e, ["title"]);
|
@@ -23777,17 +23777,17 @@ function k9(i, e, t) {
|
|
23777
23777
|
throw new Error("autoTruncate parameter is not supported in Gemini API.");
|
23778
23778
|
return n;
|
23779
23779
|
}
|
23780
|
-
function
|
23780
|
+
function OB(i, e) {
|
23781
23781
|
const t = {}, n = m(e, ["model"]);
|
23782
23782
|
n != null && y(t, ["_url", "model"], Ot(i, n));
|
23783
23783
|
const r = m(e, ["contents"]);
|
23784
23784
|
r != null && y(t, ["requests[]", "content"], PC(i, r));
|
23785
23785
|
const o = m(e, ["config"]);
|
23786
|
-
o != null && y(t, ["config"],
|
23786
|
+
o != null && y(t, ["config"], kB(i, o, t));
|
23787
23787
|
const s = m(e, ["model"]);
|
23788
23788
|
return s !== void 0 && y(t, ["requests[]", "model"], Ot(i, s)), t;
|
23789
23789
|
}
|
23790
|
-
function
|
23790
|
+
function MB(i, e, t) {
|
23791
23791
|
const n = {};
|
23792
23792
|
if (m(e, ["outputGcsUri"]) !== void 0)
|
23793
23793
|
throw new Error("outputGcsUri parameter is not supported in Gemini API.");
|
@@ -23835,21 +23835,21 @@ function M9(i, e, t) {
|
|
23835
23835
|
throw new Error("enhancePrompt parameter is not supported in Gemini API.");
|
23836
23836
|
return n;
|
23837
23837
|
}
|
23838
|
-
function
|
23838
|
+
function LB(i, e) {
|
23839
23839
|
const t = {}, n = m(e, ["model"]);
|
23840
23840
|
n != null && y(t, ["_url", "model"], Ot(i, n));
|
23841
23841
|
const r = m(e, ["prompt"]);
|
23842
23842
|
r != null && y(t, ["instances[0]", "prompt"], r);
|
23843
23843
|
const o = m(e, ["config"]);
|
23844
|
-
return o != null && y(t, ["config"],
|
23844
|
+
return o != null && y(t, ["config"], MB(i, o, t)), t;
|
23845
23845
|
}
|
23846
|
-
function
|
23846
|
+
function NB(i, e) {
|
23847
23847
|
const t = {}, n = m(e, ["model"]);
|
23848
23848
|
n != null && y(t, ["_url", "name"], Ot(i, n));
|
23849
23849
|
const r = m(e, ["config"]);
|
23850
23850
|
return r != null && y(t, ["config"], r), t;
|
23851
23851
|
}
|
23852
|
-
function
|
23852
|
+
function DB(i, e, t) {
|
23853
23853
|
const n = {}, r = m(e, ["pageSize"]);
|
23854
23854
|
t !== void 0 && r != null && y(t, ["_query", "pageSize"], r);
|
23855
23855
|
const o = m(e, ["pageToken"]);
|
@@ -23859,11 +23859,11 @@ function D9(i, e, t) {
|
|
23859
23859
|
const a = m(e, ["queryBase"]);
|
23860
23860
|
return t !== void 0 && a != null && y(t, ["_url", "models_url"], OC(i, a)), n;
|
23861
23861
|
}
|
23862
|
-
function
|
23862
|
+
function FB(i, e) {
|
23863
23863
|
const t = {}, n = m(e, ["config"]);
|
23864
|
-
return n != null && y(t, ["config"],
|
23864
|
+
return n != null && y(t, ["config"], DB(i, n, t)), t;
|
23865
23865
|
}
|
23866
|
-
function $
|
23866
|
+
function $B(i, e, t) {
|
23867
23867
|
const n = {}, r = m(e, ["displayName"]);
|
23868
23868
|
t !== void 0 && r != null && y(t, ["displayName"], r);
|
23869
23869
|
const o = m(e, ["description"]);
|
@@ -23873,19 +23873,19 @@ function $9(i, e, t) {
|
|
23873
23873
|
]);
|
23874
23874
|
return t !== void 0 && s != null && y(t, ["defaultCheckpointId"], s), n;
|
23875
23875
|
}
|
23876
|
-
function
|
23876
|
+
function UB(i, e) {
|
23877
23877
|
const t = {}, n = m(e, ["model"]);
|
23878
23878
|
n != null && y(t, ["_url", "name"], Ot(i, n));
|
23879
23879
|
const r = m(e, ["config"]);
|
23880
|
-
return r != null && y(t, ["config"], $
|
23880
|
+
return r != null && y(t, ["config"], $B(i, r, t)), t;
|
23881
23881
|
}
|
23882
|
-
function
|
23882
|
+
function qB(i, e) {
|
23883
23883
|
const t = {}, n = m(e, ["model"]);
|
23884
23884
|
n != null && y(t, ["_url", "name"], Ot(i, n));
|
23885
23885
|
const r = m(e, ["config"]);
|
23886
23886
|
return r != null && y(t, ["config"], r), t;
|
23887
23887
|
}
|
23888
|
-
function
|
23888
|
+
function BB(i, e) {
|
23889
23889
|
const t = {};
|
23890
23890
|
if (m(e, ["systemInstruction"]) !== void 0)
|
23891
23891
|
throw new Error("systemInstruction parameter is not supported in Gemini API.");
|
@@ -23895,7 +23895,7 @@ function B9(i, e) {
|
|
23895
23895
|
throw new Error("generationConfig parameter is not supported in Gemini API.");
|
23896
23896
|
return t;
|
23897
23897
|
}
|
23898
|
-
function
|
23898
|
+
function VB(i, e) {
|
23899
23899
|
const t = {}, n = m(e, ["model"]);
|
23900
23900
|
n != null && y(t, ["_url", "model"], Ot(i, n));
|
23901
23901
|
const r = m(e, ["contents"]);
|
@@ -23904,9 +23904,9 @@ function V9(i, e) {
|
|
23904
23904
|
Array.isArray(s) && (s = s.map((a) => Ec(i, a))), y(t, ["contents"], s);
|
23905
23905
|
}
|
23906
23906
|
const o = m(e, ["config"]);
|
23907
|
-
return o != null && y(t, ["config"],
|
23907
|
+
return o != null && y(t, ["config"], BB(i, o)), t;
|
23908
23908
|
}
|
23909
|
-
function
|
23909
|
+
function HB(i, e) {
|
23910
23910
|
const t = {};
|
23911
23911
|
if (m(e, ["gcsUri"]) !== void 0)
|
23912
23912
|
throw new Error("gcsUri parameter is not supported in Gemini API.");
|
@@ -23915,7 +23915,7 @@ function H9(i, e) {
|
|
23915
23915
|
const r = m(e, ["mimeType"]);
|
23916
23916
|
return r != null && y(t, ["mimeType"], r), t;
|
23917
23917
|
}
|
23918
|
-
function
|
23918
|
+
function GB(i, e, t) {
|
23919
23919
|
const n = {}, r = m(e, [
|
23920
23920
|
"numberOfVideos"
|
23921
23921
|
]);
|
@@ -23943,17 +23943,17 @@ function G9(i, e, t) {
|
|
23943
23943
|
throw new Error("enhancePrompt parameter is not supported in Gemini API.");
|
23944
23944
|
return n;
|
23945
23945
|
}
|
23946
|
-
function
|
23946
|
+
function WB(i, e) {
|
23947
23947
|
const t = {}, n = m(e, ["model"]);
|
23948
23948
|
n != null && y(t, ["_url", "model"], Ot(i, n));
|
23949
23949
|
const r = m(e, ["prompt"]);
|
23950
23950
|
r != null && y(t, ["instances[0]", "prompt"], r);
|
23951
23951
|
const o = m(e, ["image"]);
|
23952
|
-
o != null && y(t, ["instances[0]", "image"],
|
23952
|
+
o != null && y(t, ["instances[0]", "image"], HB(i, o));
|
23953
23953
|
const s = m(e, ["config"]);
|
23954
|
-
return s != null && y(t, ["config"],
|
23954
|
+
return s != null && y(t, ["config"], GB(i, s, t)), t;
|
23955
23955
|
}
|
23956
|
-
function
|
23956
|
+
function zB(i, e) {
|
23957
23957
|
const t = {}, n = m(e, ["fps"]);
|
23958
23958
|
n != null && y(t, ["fps"], n);
|
23959
23959
|
const r = m(e, ["endOffset"]);
|
@@ -23961,7 +23961,7 @@ function z9(i, e) {
|
|
23961
23961
|
const o = m(e, ["startOffset"]);
|
23962
23962
|
return o != null && y(t, ["startOffset"], o), t;
|
23963
23963
|
}
|
23964
|
-
function
|
23964
|
+
function KB(i, e) {
|
23965
23965
|
const t = {}, n = m(e, ["displayName"]);
|
23966
23966
|
n != null && y(t, ["displayName"], n);
|
23967
23967
|
const r = m(e, ["data"]);
|
@@ -23969,15 +23969,15 @@ function K9(i, e) {
|
|
23969
23969
|
const o = m(e, ["mimeType"]);
|
23970
23970
|
return o != null && y(t, ["mimeType"], o), t;
|
23971
23971
|
}
|
23972
|
-
function
|
23972
|
+
function JB(i, e) {
|
23973
23973
|
const t = {}, n = m(e, [
|
23974
23974
|
"videoMetadata"
|
23975
23975
|
]);
|
23976
|
-
n != null && y(t, ["videoMetadata"],
|
23976
|
+
n != null && y(t, ["videoMetadata"], zB(i, n));
|
23977
23977
|
const r = m(e, ["thought"]);
|
23978
23978
|
r != null && y(t, ["thought"], r);
|
23979
23979
|
const o = m(e, ["inlineData"]);
|
23980
|
-
o != null && y(t, ["inlineData"],
|
23980
|
+
o != null && y(t, ["inlineData"], KB(i, o));
|
23981
23981
|
const s = m(e, [
|
23982
23982
|
"codeExecutionResult"
|
23983
23983
|
]);
|
@@ -24001,18 +24001,18 @@ function hs(i, e) {
|
|
24001
24001
|
const t = {}, n = m(e, ["parts"]);
|
24002
24002
|
if (n != null) {
|
24003
24003
|
let o = n;
|
24004
|
-
Array.isArray(o) && (o = o.map((s) =>
|
24004
|
+
Array.isArray(o) && (o = o.map((s) => JB(i, s))), y(t, ["parts"], o);
|
24005
24005
|
}
|
24006
24006
|
const r = m(e, ["role"]);
|
24007
24007
|
return r != null && y(t, ["role"], r), t;
|
24008
24008
|
}
|
24009
|
-
function
|
24009
|
+
function YB(i, e) {
|
24010
24010
|
const t = {}, n = m(e, [
|
24011
24011
|
"featureSelectionPreference"
|
24012
24012
|
]);
|
24013
24013
|
return n != null && y(t, ["featureSelectionPreference"], n), t;
|
24014
24014
|
}
|
24015
|
-
function
|
24015
|
+
function jB(i, e) {
|
24016
24016
|
const t = {}, n = m(e, ["method"]);
|
24017
24017
|
n != null && y(t, ["method"], n);
|
24018
24018
|
const r = m(e, ["category"]);
|
@@ -24020,7 +24020,7 @@ function j9(i, e) {
|
|
24020
24020
|
const o = m(e, ["threshold"]);
|
24021
24021
|
return o != null && y(t, ["threshold"], o), t;
|
24022
24022
|
}
|
24023
|
-
function
|
24023
|
+
function ZB(i, e) {
|
24024
24024
|
const t = {};
|
24025
24025
|
if (m(e, ["behavior"]) !== void 0)
|
24026
24026
|
throw new Error("behavior parameter is not supported in Vertex AI.");
|
@@ -24033,17 +24033,17 @@ function Z9(i, e) {
|
|
24033
24033
|
const s = m(e, ["response"]);
|
24034
24034
|
return s != null && y(t, ["response"], s), t;
|
24035
24035
|
}
|
24036
|
-
function
|
24036
|
+
function QB(i, e) {
|
24037
24037
|
const t = {}, n = m(e, ["startTime"]);
|
24038
24038
|
n != null && y(t, ["startTime"], n);
|
24039
24039
|
const r = m(e, ["endTime"]);
|
24040
24040
|
return r != null && y(t, ["endTime"], r), t;
|
24041
24041
|
}
|
24042
|
-
function
|
24042
|
+
function XB(i, e) {
|
24043
24043
|
const t = {}, n = m(e, [
|
24044
24044
|
"timeRangeFilter"
|
24045
24045
|
]);
|
24046
|
-
return n != null && y(t, ["timeRangeFilter"],
|
24046
|
+
return n != null && y(t, ["timeRangeFilter"], QB(i, n)), t;
|
24047
24047
|
}
|
24048
24048
|
function eV(i, e) {
|
24049
24049
|
const t = {}, n = m(e, ["mode"]);
|
@@ -24094,12 +24094,12 @@ function BC(i, e) {
|
|
24094
24094
|
]);
|
24095
24095
|
if (n != null) {
|
24096
24096
|
let d = n;
|
24097
|
-
Array.isArray(d) && (d = d.map((h) =>
|
24097
|
+
Array.isArray(d) && (d = d.map((h) => ZB(i, h))), y(t, ["functionDeclarations"], d);
|
24098
24098
|
}
|
24099
24099
|
const r = m(e, ["retrieval"]);
|
24100
24100
|
r != null && y(t, ["retrieval"], r);
|
24101
24101
|
const o = m(e, ["googleSearch"]);
|
24102
|
-
o != null && y(t, ["googleSearch"],
|
24102
|
+
o != null && y(t, ["googleSearch"], XB(i, o));
|
24103
24103
|
const s = m(e, [
|
24104
24104
|
"googleSearchRetrieval"
|
24105
24105
|
]);
|
@@ -24223,13 +24223,13 @@ function pV(i, e, t) {
|
|
24223
24223
|
const T = m(e, [
|
24224
24224
|
"modelSelectionConfig"
|
24225
24225
|
]);
|
24226
|
-
T != null && y(n, ["modelConfig"],
|
24226
|
+
T != null && y(n, ["modelConfig"], YB(i, T));
|
24227
24227
|
const C = m(e, [
|
24228
24228
|
"safetySettings"
|
24229
24229
|
]);
|
24230
24230
|
if (t !== void 0 && C != null) {
|
24231
24231
|
let K = C;
|
24232
|
-
Array.isArray(K) && (K = K.map((J) =>
|
24232
|
+
Array.isArray(K) && (K = K.map((J) => jB(i, J))), y(t, ["safetySettings"], K);
|
24233
24233
|
}
|
24234
24234
|
const A = m(e, ["tools"]);
|
24235
24235
|
if (t !== void 0 && A != null) {
|
@@ -25590,7 +25590,7 @@ async function V4(i, e, t) {
|
|
25590
25590
|
const n = new eq();
|
25591
25591
|
let r;
|
25592
25592
|
t.data instanceof Blob ? r = JSON.parse(await t.data.text()) : r = JSON.parse(t.data);
|
25593
|
-
const o =
|
25593
|
+
const o = uB(i, r);
|
25594
25594
|
Object.assign(n, o), e(n);
|
25595
25595
|
}
|
25596
25596
|
class H4 {
|
@@ -25674,7 +25674,7 @@ class G4 {
|
|
25674
25674
|
async setWeightedPrompts(e) {
|
25675
25675
|
if (!e.weightedPrompts || Object.keys(e.weightedPrompts).length === 0)
|
25676
25676
|
throw new Error("Weighted prompts must be set and contain at least one entry.");
|
25677
|
-
const t =
|
25677
|
+
const t = C9(this.apiClient, e), n = UC(this.apiClient, t);
|
25678
25678
|
this.conn.send(JSON.stringify({ clientContent: n }));
|
25679
25679
|
}
|
25680
25680
|
/**
|
@@ -25690,7 +25690,7 @@ class G4 {
|
|
25690
25690
|
*/
|
25691
25691
|
async setMusicGenerationConfig(e) {
|
25692
25692
|
e.musicGenerationConfig || (e.musicGenerationConfig = {});
|
25693
|
-
const t =
|
25693
|
+
const t = A9(this.apiClient, e), n = Em(this.apiClient, t);
|
25694
25694
|
this.conn.send(JSON.stringify(n));
|
25695
25695
|
}
|
25696
25696
|
sendPlaybackControl(e) {
|
@@ -25765,10 +25765,10 @@ async function J4(i, e, t) {
|
|
25765
25765
|
const n = new XU();
|
25766
25766
|
let r;
|
25767
25767
|
if (t.data instanceof Blob ? r = JSON.parse(await t.data.text()) : r = JSON.parse(t.data), i.isVertexAI()) {
|
25768
|
-
const o =
|
25768
|
+
const o = eB(i, r);
|
25769
25769
|
Object.assign(n, o);
|
25770
25770
|
} else {
|
25771
|
-
const o =
|
25771
|
+
const o = X9(i, r);
|
25772
25772
|
Object.assign(n, o);
|
25773
25773
|
}
|
25774
25774
|
e(n);
|
@@ -25870,7 +25870,7 @@ class Y4 {
|
|
25870
25870
|
config: e.config,
|
25871
25871
|
callbacks: e.callbacks
|
25872
25872
|
};
|
25873
|
-
return this.apiClient.isVertexAI() ? A =
|
25873
|
+
return this.apiClient.isVertexAI() ? A = y9(this.apiClient, x) : A = v9(this.apiClient, x), delete A.config, T.send(JSON.stringify(A)), new Z4(T, this.apiClient);
|
25874
25874
|
}
|
25875
25875
|
// TODO: b/416041229 - Abstract this method to a common place.
|
25876
25876
|
isCallableTool(e) {
|
@@ -25995,9 +25995,9 @@ class Z4 {
|
|
25995
25995
|
sendRealtimeInput(e) {
|
25996
25996
|
let t = {};
|
25997
25997
|
this.apiClient.isVertexAI() ? t = {
|
25998
|
-
realtimeInput:
|
25998
|
+
realtimeInput: T9(this.apiClient, e)
|
25999
25999
|
} : t = {
|
26000
|
-
realtimeInput:
|
26000
|
+
realtimeInput: E9(this.apiClient, e)
|
26001
26001
|
}, this.conn.send(JSON.stringify(t));
|
26002
26002
|
}
|
26003
26003
|
/**
|
@@ -26410,7 +26410,7 @@ class eH extends Ca {
|
|
26410
26410
|
return Object.assign(g, h), g;
|
26411
26411
|
});
|
26412
26412
|
} else {
|
26413
|
-
const c =
|
26413
|
+
const c = OB(this.apiClient, e);
|
26414
26414
|
return a = Be("{model}:batchEmbedContents", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26415
26415
|
path: a,
|
26416
26416
|
queryParams: u,
|
@@ -26460,7 +26460,7 @@ class eH extends Ca {
|
|
26460
26460
|
return Object.assign(g, h), g;
|
26461
26461
|
});
|
26462
26462
|
} else {
|
26463
|
-
const c =
|
26463
|
+
const c = LB(this.apiClient, e);
|
26464
26464
|
return a = Be("{model}:predict", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26465
26465
|
path: a,
|
26466
26466
|
queryParams: u,
|
@@ -26534,7 +26534,7 @@ class eH extends Ca {
|
|
26534
26534
|
abortSignal: (n = e.config) === null || n === void 0 ? void 0 : n.abortSignal
|
26535
26535
|
}).then((d) => d.json()), s.then((d) => Cm(this.apiClient, d));
|
26536
26536
|
} else {
|
26537
|
-
const c =
|
26537
|
+
const c = NB(this.apiClient, e);
|
26538
26538
|
return a = Be("{name}", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26539
26539
|
path: a,
|
26540
26540
|
queryParams: u,
|
@@ -26562,7 +26562,7 @@ class eH extends Ca {
|
|
26562
26562
|
return Object.assign(g, h), g;
|
26563
26563
|
});
|
26564
26564
|
} else {
|
26565
|
-
const c =
|
26565
|
+
const c = FB(this.apiClient, e);
|
26566
26566
|
return a = Be("{models_url}", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26567
26567
|
path: a,
|
26568
26568
|
queryParams: u,
|
@@ -26607,7 +26607,7 @@ class eH extends Ca {
|
|
26607
26607
|
abortSignal: (n = e.config) === null || n === void 0 ? void 0 : n.abortSignal
|
26608
26608
|
}).then((d) => d.json()), s.then((d) => Cm(this.apiClient, d));
|
26609
26609
|
} else {
|
26610
|
-
const c =
|
26610
|
+
const c = UB(this.apiClient, e);
|
26611
26611
|
return a = Be("{name}", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26612
26612
|
path: a,
|
26613
26613
|
queryParams: u,
|
@@ -26646,7 +26646,7 @@ class eH extends Ca {
|
|
26646
26646
|
return Object.assign(h, d), h;
|
26647
26647
|
});
|
26648
26648
|
} else {
|
26649
|
-
const c =
|
26649
|
+
const c = qB(this.apiClient, e);
|
26650
26650
|
return a = Be("{name}", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26651
26651
|
path: a,
|
26652
26652
|
queryParams: u,
|
@@ -26693,7 +26693,7 @@ class eH extends Ca {
|
|
26693
26693
|
return Object.assign(g, h), g;
|
26694
26694
|
});
|
26695
26695
|
} else {
|
26696
|
-
const c =
|
26696
|
+
const c = VB(this.apiClient, e);
|
26697
26697
|
return a = Be("{model}:countTokens", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26698
26698
|
path: a,
|
26699
26699
|
queryParams: u,
|
@@ -26781,7 +26781,7 @@ class eH extends Ca {
|
|
26781
26781
|
abortSignal: (n = e.config) === null || n === void 0 ? void 0 : n.abortSignal
|
26782
26782
|
}).then((d) => d.json()), s.then((d) => k4(this.apiClient, d));
|
26783
26783
|
} else {
|
26784
|
-
const c =
|
26784
|
+
const c = WB(this.apiClient, e);
|
26785
26785
|
return a = Be("{model}:predictLongRunning", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
|
26786
26786
|
path: a,
|
26787
26787
|
queryParams: u,
|
@@ -40204,7 +40204,7 @@ function Tr() {
|
|
40204
40204
|
}
|
40205
40205
|
async function sW(i, e) {
|
40206
40206
|
try {
|
40207
|
-
const t = await ZG("0.0.
|
40207
|
+
const t = await ZG("0.0.1748851339-g31df22");
|
40208
40208
|
t.hasUpdate && t.latestVersion ? e ? (i.next({ type: "update-start-updating" }), setTimeout(async () => {
|
40209
40209
|
try {
|
40210
40210
|
await tW(t.latestVersion), i.next({
|
@@ -40219,7 +40219,7 @@ async function sW(i, e) {
|
|
40219
40219
|
version: t.latestVersion
|
40220
40220
|
});
|
40221
40221
|
}
|
40222
|
-
}, 100)) : ie.info(`New version available: 0.0.
|
40222
|
+
}, 100)) : ie.info(`New version available: 0.0.1748851339-g31df22 → ${t.latestVersion}`) : ie.info("No update available");
|
40223
40223
|
} catch (t) {
|
40224
40224
|
ie.debug("Update check failed", t);
|
40225
40225
|
}
|
@@ -40317,7 +40317,7 @@ async function Iu(i, e) {
|
|
40317
40317
|
cg({
|
40318
40318
|
logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
|
40319
40319
|
logFile: e.logFile || process.env.AMP_LOG_FILE
|
40320
|
-
}), jM("0.0.
|
40320
|
+
}), jM("0.0.1748851339-g31df22");
|
40321
40321
|
const t = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
|
40322
40322
|
ie.info("Using settings file", { settingsFile: t });
|
40323
40323
|
const n = wu(), r = $T({ settingsFile: t }), o = process.env.AMP_API_KEY;
|
@@ -40417,7 +40417,7 @@ function dW(i) {
|
|
40417
40417
|
const e = new U2().name("amp").description("AI-powered coding assistant").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
|
40418
40418
|
e.option("-V, --version", "output the version number", () => {
|
40419
40419
|
if (i.isTTY) {
|
40420
|
-
const r = "0.0.
|
40420
|
+
const r = "0.0.1748851339-g31df22".match(/^(\d+\.\d+)\.(\d+)-(.+)$/);
|
40421
40421
|
if (r) {
|
40422
40422
|
const [, , o] = r;
|
40423
40423
|
try {
|
@@ -40428,21 +40428,21 @@ function dW(i) {
|
|
40428
40428
|
day: "numeric"
|
40429
40429
|
});
|
40430
40430
|
tt.write(
|
40431
|
-
`0.0.
|
40431
|
+
`0.0.1748851339-g31df22 ${i.printer.print(`(released ${a})`, { foreground: "gray" })}
|
40432
40432
|
`
|
40433
40433
|
);
|
40434
40434
|
} else
|
40435
|
-
tt.write(`0.0.
|
40435
|
+
tt.write(`0.0.1748851339-g31df22
|
40436
40436
|
`);
|
40437
40437
|
} catch {
|
40438
|
-
tt.write(`0.0.
|
40438
|
+
tt.write(`0.0.1748851339-g31df22
|
40439
40439
|
`);
|
40440
40440
|
}
|
40441
40441
|
} else
|
40442
|
-
tt.write(`0.0.
|
40442
|
+
tt.write(`0.0.1748851339-g31df22
|
40443
40443
|
`);
|
40444
40444
|
} else
|
40445
|
-
tt.write(`0.0.
|
40445
|
+
tt.write(`0.0.1748851339-g31df22
|
40446
40446
|
`);
|
40447
40447
|
process.exit(0);
|
40448
40448
|
}), e.addHelpText(
|
@@ -40840,4 +40840,4 @@ export {
|
|
40840
40840
|
ge as s,
|
40841
40841
|
lr as u
|
40842
40842
|
};
|
40843
|
-
//# sourceMappingURL=main-
|
40843
|
+
//# sourceMappingURL=main-DuPQOPga.js.map
|