@teamlearners/clawops 0.12.0 → 0.13.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.
- package/dist/agent/index.cjs +14 -8
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +3 -0
- package/dist/agent/index.d.ts +3 -0
- package/dist/agent/index.js +7 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/{chunk-X6VG5NNG.cjs → chunk-7IYMRCGL.cjs} +3 -3
- package/dist/{chunk-X6VG5NNG.cjs.map → chunk-7IYMRCGL.cjs.map} +1 -1
- package/dist/{chunk-KK3OXQT6.js → chunk-FQOH42FH.js} +3 -3
- package/dist/{chunk-KK3OXQT6.js.map → chunk-FQOH42FH.js.map} +1 -1
- package/dist/index.cjs +37 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/agent/index.d.cts
CHANGED
|
@@ -759,6 +759,8 @@ 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>;
|
|
762
764
|
}
|
|
763
765
|
declare class GeminiRealtime implements Session {
|
|
764
766
|
private _apiKey;
|
|
@@ -767,6 +769,7 @@ declare class GeminiRealtime implements Session {
|
|
|
767
769
|
private _voice;
|
|
768
770
|
private _language;
|
|
769
771
|
private _greeting;
|
|
772
|
+
private _realtimeInputConfig;
|
|
770
773
|
private _session;
|
|
771
774
|
private _call;
|
|
772
775
|
private _tools;
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -759,6 +759,8 @@ 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>;
|
|
762
764
|
}
|
|
763
765
|
declare class GeminiRealtime implements Session {
|
|
764
766
|
private _apiKey;
|
|
@@ -767,6 +769,7 @@ declare class GeminiRealtime implements Session {
|
|
|
767
769
|
private _voice;
|
|
768
770
|
private _language;
|
|
769
771
|
private _greeting;
|
|
772
|
+
private _realtimeInputConfig;
|
|
770
773
|
private _session;
|
|
771
774
|
private _call;
|
|
772
775
|
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-FQOH42FH.js';
|
|
2
2
|
import pino from 'pino';
|
|
3
3
|
import * as fs from 'fs';
|
|
4
4
|
import * as path from 'path';
|
|
@@ -2986,6 +2986,7 @@ var GeminiRealtime = class _GeminiRealtime {
|
|
|
2986
2986
|
_voice;
|
|
2987
2987
|
_language;
|
|
2988
2988
|
_greeting;
|
|
2989
|
+
_realtimeInputConfig;
|
|
2989
2990
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2990
2991
|
_session = null;
|
|
2991
2992
|
_call = null;
|
|
@@ -3007,6 +3008,7 @@ var GeminiRealtime = class _GeminiRealtime {
|
|
|
3007
3008
|
this._voice = options.voice ?? "Kore";
|
|
3008
3009
|
this._language = options.language ?? "ko";
|
|
3009
3010
|
this._greeting = options.greeting ?? true;
|
|
3011
|
+
this._realtimeInputConfig = options.realtimeInputConfig ?? null;
|
|
3010
3012
|
}
|
|
3011
3013
|
/** Inject per-call ToolRegistry. */
|
|
3012
3014
|
setToolRegistry(registry) {
|
|
@@ -3061,6 +3063,9 @@ var GeminiRealtime = class _GeminiRealtime {
|
|
|
3061
3063
|
inputAudioTranscription: {},
|
|
3062
3064
|
outputAudioTranscription: {}
|
|
3063
3065
|
};
|
|
3066
|
+
if (this._realtimeInputConfig) {
|
|
3067
|
+
config["realtimeInputConfig"] = this._realtimeInputConfig;
|
|
3068
|
+
}
|
|
3064
3069
|
if (this._systemPrompt) {
|
|
3065
3070
|
config["systemInstruction"] = {
|
|
3066
3071
|
parts: [{ text: this._systemPrompt }]
|
|
@@ -3070,6 +3075,7 @@ var GeminiRealtime = class _GeminiRealtime {
|
|
|
3070
3075
|
if (toolSchemas.length > 0) {
|
|
3071
3076
|
config["tools"] = [{ functionDeclarations: toolSchemas }];
|
|
3072
3077
|
}
|
|
3078
|
+
this._log.debug({ config }, "Gemini SDK final config");
|
|
3073
3079
|
this._session = await client.live.connect({
|
|
3074
3080
|
model: this._model,
|
|
3075
3081
|
config,
|