agora-agents 2.8.0 → 2.8.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.
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
41
41
  const headers = (0, headers_js_1.mergeHeaders)({
42
42
  "X-Fern-Language": "JavaScript",
43
43
  "X-Fern-SDK-Name": "agora-agents",
44
- "X-Fern-SDK-Version": "v2.8.0",
45
- "User-Agent": "agora-agents/v2.8.0",
44
+ "X-Fern-SDK-Version": "v2.8.1",
45
+ "User-Agent": "agora-agents/v2.8.1",
46
46
  "X-Fern-Runtime": core.RUNTIME.type,
47
47
  "X-Fern-Runtime-Version": core.RUNTIME.version,
48
48
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -30,7 +30,7 @@ export interface OpenAIGPTLiveOptions {
30
30
  inputAudioTranscription?: Record<string, unknown>;
31
31
  /** @deprecated Ignored with a warning; v3 performs endpointing internally. */
32
32
  turnDetection?: MllmTurnDetectionConfig;
33
- /** Defaults to gpt-live-1-diamond-alpha. */
33
+ /** Defaults to gpt-live-1. */
34
34
  model?: string;
35
35
  /** Output voice; provider default marin. Custom voice objects require PR #1522; use params after rollout. */
36
36
  voice?: string;
@@ -40,7 +40,7 @@ export interface OpenAIGPTLiveOptions {
40
40
  baseUrl?: string;
41
41
  /** WebSocket path; default /v1/live/sessions. */
42
42
  path?: string;
43
- /** OpenAI-Alpha selector. Defaults to the required GPT Live v3 contract. */
43
+ /** Optional OpenAI-Alpha selector for preview contracts. Omitted by default. */
44
44
  alphaSelector?: string;
45
45
  /** Extra provider request headers as a JSON string; protocol headers win. */
46
46
  headers?: string;
@@ -31,7 +31,7 @@ class OpenAIGPTLive extends base_js_1.BaseMLLM {
31
31
  toConfig() {
32
32
  var _a, _b;
33
33
  const o = this.options;
34
- const params = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ model: "gpt-live-1-diamond-alpha", alpha_selector: "quicksilver=v3" }, o.params), (o.instructions !== undefined && { prompt: o.instructions })), (o.model !== undefined && { model: o.model })), (o.voice !== undefined && { voice: o.voice })), (o.prompt !== undefined && { prompt: o.prompt })), (o.baseUrl !== undefined && { base_url: o.baseUrl })), (o.path !== undefined && { path: o.path })), (o.alphaSelector !== undefined && { alpha_selector: o.alphaSelector })), (o.headers !== undefined && { headers: o.headers })), (o.outputIdleEndMs !== undefined && { output_idle_end_ms: o.outputIdleEndMs })), (o.inputIdleEndMs !== undefined && { input_idle_end_ms: o.inputIdleEndMs })), (o.outputSilencePeak !== undefined && { output_silence_peak: o.outputSilencePeak })), (o.outputSampleRate !== undefined && { output_sample_rate: o.outputSampleRate })), (o.outputBufferMs !== undefined && { output_buffer_ms: o.outputBufferMs })), (o.inputBatchMs !== undefined && { input_batch_ms: o.inputBatchMs })), (o.toolEnabled !== undefined && { tool_enabled: o.toolEnabled })), (o.delegation !== undefined && { delegation: o.delegation })), (o.responsesModel !== undefined && { responses_model: o.responsesModel })), (o.interruptOnUserTurn !== undefined && { interrupt_on_user_turn: o.interruptOnUserTurn })), (o.sessionParams !== undefined && { session_params: o.sessionParams }));
34
+ const params = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ model: "gpt-live-1" }, o.params), (o.instructions !== undefined && { prompt: o.instructions })), (o.model !== undefined && { model: o.model })), (o.voice !== undefined && { voice: o.voice })), (o.prompt !== undefined && { prompt: o.prompt })), (o.baseUrl !== undefined && { base_url: o.baseUrl })), (o.path !== undefined && { path: o.path })), (o.alphaSelector !== undefined && { alpha_selector: o.alphaSelector })), (o.headers !== undefined && { headers: o.headers })), (o.outputIdleEndMs !== undefined && { output_idle_end_ms: o.outputIdleEndMs })), (o.inputIdleEndMs !== undefined && { input_idle_end_ms: o.inputIdleEndMs })), (o.outputSilencePeak !== undefined && { output_silence_peak: o.outputSilencePeak })), (o.outputSampleRate !== undefined && { output_sample_rate: o.outputSampleRate })), (o.outputBufferMs !== undefined && { output_buffer_ms: o.outputBufferMs })), (o.inputBatchMs !== undefined && { input_batch_ms: o.inputBatchMs })), (o.toolEnabled !== undefined && { tool_enabled: o.toolEnabled })), (o.delegation !== undefined && { delegation: o.delegation })), (o.responsesModel !== undefined && { responses_model: o.responsesModel })), (o.interruptOnUserTurn !== undefined && { interrupt_on_user_turn: o.interruptOnUserTurn })), (o.sessionParams !== undefined && { session_params: o.sessionParams }));
35
35
  if (o.inputAudioTranscription !== undefined || "input_audio_transcription" in params) {
36
36
  throw new Error("GPT Live v3 does not support input_audio_transcription");
37
37
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.8.0";
1
+ export declare const SDK_VERSION = "v2.8.1";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "v2.8.0";
4
+ exports.SDK_VERSION = "v2.8.1";
@@ -5,8 +5,8 @@ export function normalizeClientOptions(options) {
5
5
  const headers = mergeHeaders({
6
6
  "X-Fern-Language": "JavaScript",
7
7
  "X-Fern-SDK-Name": "agora-agents",
8
- "X-Fern-SDK-Version": "v2.8.0",
9
- "User-Agent": "agora-agents/v2.8.0",
8
+ "X-Fern-SDK-Version": "v2.8.1",
9
+ "User-Agent": "agora-agents/v2.8.1",
10
10
  "X-Fern-Runtime": core.RUNTIME.type,
11
11
  "X-Fern-Runtime-Version": core.RUNTIME.version,
12
12
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -30,7 +30,7 @@ export interface OpenAIGPTLiveOptions {
30
30
  inputAudioTranscription?: Record<string, unknown>;
31
31
  /** @deprecated Ignored with a warning; v3 performs endpointing internally. */
32
32
  turnDetection?: MllmTurnDetectionConfig;
33
- /** Defaults to gpt-live-1-diamond-alpha. */
33
+ /** Defaults to gpt-live-1. */
34
34
  model?: string;
35
35
  /** Output voice; provider default marin. Custom voice objects require PR #1522; use params after rollout. */
36
36
  voice?: string;
@@ -40,7 +40,7 @@ export interface OpenAIGPTLiveOptions {
40
40
  baseUrl?: string;
41
41
  /** WebSocket path; default /v1/live/sessions. */
42
42
  path?: string;
43
- /** OpenAI-Alpha selector. Defaults to the required GPT Live v3 contract. */
43
+ /** Optional OpenAI-Alpha selector for preview contracts. Omitted by default. */
44
44
  alphaSelector?: string;
45
45
  /** Extra provider request headers as a JSON string; protocol headers win. */
46
46
  headers?: string;
@@ -27,7 +27,7 @@ export class OpenAIGPTLive extends BaseMLLM {
27
27
  toConfig() {
28
28
  var _a, _b;
29
29
  const o = this.options;
30
- const params = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ model: "gpt-live-1-diamond-alpha", alpha_selector: "quicksilver=v3" }, o.params), (o.instructions !== undefined && { prompt: o.instructions })), (o.model !== undefined && { model: o.model })), (o.voice !== undefined && { voice: o.voice })), (o.prompt !== undefined && { prompt: o.prompt })), (o.baseUrl !== undefined && { base_url: o.baseUrl })), (o.path !== undefined && { path: o.path })), (o.alphaSelector !== undefined && { alpha_selector: o.alphaSelector })), (o.headers !== undefined && { headers: o.headers })), (o.outputIdleEndMs !== undefined && { output_idle_end_ms: o.outputIdleEndMs })), (o.inputIdleEndMs !== undefined && { input_idle_end_ms: o.inputIdleEndMs })), (o.outputSilencePeak !== undefined && { output_silence_peak: o.outputSilencePeak })), (o.outputSampleRate !== undefined && { output_sample_rate: o.outputSampleRate })), (o.outputBufferMs !== undefined && { output_buffer_ms: o.outputBufferMs })), (o.inputBatchMs !== undefined && { input_batch_ms: o.inputBatchMs })), (o.toolEnabled !== undefined && { tool_enabled: o.toolEnabled })), (o.delegation !== undefined && { delegation: o.delegation })), (o.responsesModel !== undefined && { responses_model: o.responsesModel })), (o.interruptOnUserTurn !== undefined && { interrupt_on_user_turn: o.interruptOnUserTurn })), (o.sessionParams !== undefined && { session_params: o.sessionParams }));
30
+ const params = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ model: "gpt-live-1" }, o.params), (o.instructions !== undefined && { prompt: o.instructions })), (o.model !== undefined && { model: o.model })), (o.voice !== undefined && { voice: o.voice })), (o.prompt !== undefined && { prompt: o.prompt })), (o.baseUrl !== undefined && { base_url: o.baseUrl })), (o.path !== undefined && { path: o.path })), (o.alphaSelector !== undefined && { alpha_selector: o.alphaSelector })), (o.headers !== undefined && { headers: o.headers })), (o.outputIdleEndMs !== undefined && { output_idle_end_ms: o.outputIdleEndMs })), (o.inputIdleEndMs !== undefined && { input_idle_end_ms: o.inputIdleEndMs })), (o.outputSilencePeak !== undefined && { output_silence_peak: o.outputSilencePeak })), (o.outputSampleRate !== undefined && { output_sample_rate: o.outputSampleRate })), (o.outputBufferMs !== undefined && { output_buffer_ms: o.outputBufferMs })), (o.inputBatchMs !== undefined && { input_batch_ms: o.inputBatchMs })), (o.toolEnabled !== undefined && { tool_enabled: o.toolEnabled })), (o.delegation !== undefined && { delegation: o.delegation })), (o.responsesModel !== undefined && { responses_model: o.responsesModel })), (o.interruptOnUserTurn !== undefined && { interrupt_on_user_turn: o.interruptOnUserTurn })), (o.sessionParams !== undefined && { session_params: o.sessionParams }));
31
31
  if (o.inputAudioTranscription !== undefined || "input_audio_transcription" in params) {
32
32
  throw new Error("GPT Live v3 does not support input_audio_transcription");
33
33
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.8.0";
1
+ export declare const SDK_VERSION = "v2.8.1";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v2.8.0";
1
+ export const SDK_VERSION = "v2.8.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-agents",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "private": false,
5
5
  "repository": "github:AgoraIO/agora-agents-ts",
6
6
  "type": "commonjs",