@teamlearners/clawops 0.12.0 → 0.13.0
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/agent/index.cjs +17 -9
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +6 -0
- package/dist/agent/index.d.ts +6 -0
- package/dist/agent/index.js +10 -2
- package/dist/agent/index.js.map +1 -1
- package/dist/{chunk-X6VG5NNG.cjs → chunk-T563RQOL.cjs} +3 -3
- package/dist/{chunk-X6VG5NNG.cjs.map → chunk-T563RQOL.cjs.map} +1 -1
- package/dist/{chunk-KK3OXQT6.js → chunk-WH65DGWI.js} +3 -3
- package/dist/{chunk-KK3OXQT6.js.map → chunk-WH65DGWI.js.map} +1 -1
- package/dist/index.cjs +38 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/agent/index.d.cts
CHANGED
|
@@ -759,6 +759,10 @@ interface GeminiRealtimeOptions {
|
|
|
759
759
|
language?: string;
|
|
760
760
|
/** Send initial greeting. Default: true */
|
|
761
761
|
greeting?: boolean;
|
|
762
|
+
/** Gemini VAD config. @google/genai RealtimeInputConfig 구조 그대로 전달. */
|
|
763
|
+
realtimeInputConfig?: Record<string, unknown>;
|
|
764
|
+
/** Input audio transcription config. @google/genai AudioTranscriptionConfig 구조 그대로 전달. */
|
|
765
|
+
inputAudioTranscription?: Record<string, unknown>;
|
|
762
766
|
}
|
|
763
767
|
declare class GeminiRealtime implements Session {
|
|
764
768
|
private _apiKey;
|
|
@@ -767,6 +771,8 @@ declare class GeminiRealtime implements Session {
|
|
|
767
771
|
private _voice;
|
|
768
772
|
private _language;
|
|
769
773
|
private _greeting;
|
|
774
|
+
private _realtimeInputConfig;
|
|
775
|
+
private _inputAudioTranscription;
|
|
770
776
|
private _session;
|
|
771
777
|
private _call;
|
|
772
778
|
private _tools;
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -759,6 +759,10 @@ interface GeminiRealtimeOptions {
|
|
|
759
759
|
language?: string;
|
|
760
760
|
/** Send initial greeting. Default: true */
|
|
761
761
|
greeting?: boolean;
|
|
762
|
+
/** Gemini VAD config. @google/genai RealtimeInputConfig 구조 그대로 전달. */
|
|
763
|
+
realtimeInputConfig?: Record<string, unknown>;
|
|
764
|
+
/** Input audio transcription config. @google/genai AudioTranscriptionConfig 구조 그대로 전달. */
|
|
765
|
+
inputAudioTranscription?: Record<string, unknown>;
|
|
762
766
|
}
|
|
763
767
|
declare class GeminiRealtime implements Session {
|
|
764
768
|
private _apiKey;
|
|
@@ -767,6 +771,8 @@ declare class GeminiRealtime implements Session {
|
|
|
767
771
|
private _voice;
|
|
768
772
|
private _language;
|
|
769
773
|
private _greeting;
|
|
774
|
+
private _realtimeInputConfig;
|
|
775
|
+
private _inputAudioTranscription;
|
|
770
776
|
private _session;
|
|
771
777
|
private _call;
|
|
772
778
|
private _tools;
|
package/dist/agent/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_BASE_URL, AgentError, AgentConnectionError, VERSION } from '../chunk-
|
|
1
|
+
import { DEFAULT_BASE_URL, AgentError, AgentConnectionError, VERSION } from '../chunk-WH65DGWI.js';
|
|
2
2
|
import pino from 'pino';
|
|
3
3
|
import * as fs from 'fs';
|
|
4
4
|
import * as path from 'path';
|
|
@@ -2986,6 +2986,8 @@ var GeminiRealtime = class _GeminiRealtime {
|
|
|
2986
2986
|
_voice;
|
|
2987
2987
|
_language;
|
|
2988
2988
|
_greeting;
|
|
2989
|
+
_realtimeInputConfig;
|
|
2990
|
+
_inputAudioTranscription;
|
|
2989
2991
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2990
2992
|
_session = null;
|
|
2991
2993
|
_call = null;
|
|
@@ -3007,6 +3009,8 @@ var GeminiRealtime = class _GeminiRealtime {
|
|
|
3007
3009
|
this._voice = options.voice ?? "Kore";
|
|
3008
3010
|
this._language = options.language ?? "ko";
|
|
3009
3011
|
this._greeting = options.greeting ?? true;
|
|
3012
|
+
this._realtimeInputConfig = options.realtimeInputConfig ?? null;
|
|
3013
|
+
this._inputAudioTranscription = options.inputAudioTranscription ?? {};
|
|
3010
3014
|
}
|
|
3011
3015
|
/** Inject per-call ToolRegistry. */
|
|
3012
3016
|
setToolRegistry(registry) {
|
|
@@ -3058,9 +3062,12 @@ var GeminiRealtime = class _GeminiRealtime {
|
|
|
3058
3062
|
}
|
|
3059
3063
|
}
|
|
3060
3064
|
},
|
|
3061
|
-
inputAudioTranscription:
|
|
3065
|
+
inputAudioTranscription: this._inputAudioTranscription,
|
|
3062
3066
|
outputAudioTranscription: {}
|
|
3063
3067
|
};
|
|
3068
|
+
if (this._realtimeInputConfig) {
|
|
3069
|
+
config["realtimeInputConfig"] = this._realtimeInputConfig;
|
|
3070
|
+
}
|
|
3064
3071
|
if (this._systemPrompt) {
|
|
3065
3072
|
config["systemInstruction"] = {
|
|
3066
3073
|
parts: [{ text: this._systemPrompt }]
|
|
@@ -3070,6 +3077,7 @@ var GeminiRealtime = class _GeminiRealtime {
|
|
|
3070
3077
|
if (toolSchemas.length > 0) {
|
|
3071
3078
|
config["tools"] = [{ functionDeclarations: toolSchemas }];
|
|
3072
3079
|
}
|
|
3080
|
+
this._log.debug({ config }, "Gemini SDK final config");
|
|
3073
3081
|
this._session = await client.live.connect({
|
|
3074
3082
|
model: this._model,
|
|
3075
3083
|
config,
|