Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"generatorConfig": {
"namespaceExport": "Agora"
},
"originGitCommit": "7edea35eef2583c1cb4860d7941275b0cd7ce900"
"originGitCommit": "8994613e045586856dab7b5eab43920dce0154c4"
}
10 changes: 8 additions & 2 deletions .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export function normalizeClientOptions<T extends BaseClientOptions>(options: T):
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "agora-agents",
"X-Fern-SDK-Version": "v2.5.0",
"User-Agent": "agora-agents/v2.5.0",
"X-Fern-SDK-Version": "v2.6.0",
"User-Agent": "agora-agents/v2.6.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
7 changes: 6 additions & 1 deletion src/api/types/AresAsrParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
/**
* ARES ASR configuration parameters.
*/
export type AresAsrParams = Record<string, unknown>;
export interface AresAsrParams {
/** A list of hotwords to improve ASR accuracy. */
keywords?: string[];
/** Accepts any additional properties */
[key: string]: any;
}
3 changes: 1 addition & 2 deletions src/api/types/FengmingAsr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import type * as Agora from "../index.js";
*/
export interface FengmingAsr {
language?: Agora.AsrLanguage;
/** Agora Fengming ASR configuration parameters. */
params?: Record<string, unknown>;
params?: Agora.FengmingAsrParams;
/** Accepts any additional properties */
[key: string]: any;
}
11 changes: 11 additions & 0 deletions src/api/types/FengmingAsrParams.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This file was auto-generated by Fern from our API Definition.

/**
* Agora Fengming ASR configuration parameters.
*/
export interface FengmingAsrParams {
/** A list of hotwords to improve ASR accuracy. */
keywords?: string[];
/** Accepts any additional properties */
[key: string]: any;
}
4 changes: 4 additions & 0 deletions src/api/types/Mllm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export interface Mllm {
/** Array of conversation items used for short-term memory management. */
messages?: Record<string, unknown>[] | null;
params?: Agora.MllmParams;
/** The number of conversation history messages cached in the MLLM. Applicable to Azure OpenAI Realtime API only. */
max_history?: number;
/** MLLM input modalities. */
input_modalities?: string[] | null;
/** MLLM output modalities. */
Expand All @@ -40,9 +42,11 @@ export namespace Mllm {
/** MLLM provider. */
export const Vendor = {
Openai: "openai",
Azure: "azure",
Gemini: "gemini",
Vertexai: "vertexai",
Xai: "xai",
QwenOmni: "qwen_omni",
} as const;
export type Vendor = (typeof Vendor)[keyof typeof Vendor];
}
7 changes: 6 additions & 1 deletion src/api/types/Tts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export type Tts =
| Agora.Tts.BytedanceDuplex
| Agora.Tts.Stepfun
| Agora.Tts.Gradium
| Agora.Tts.Mistral;
| Agora.Tts.Mistral
| Agora.Tts.Typecast;

export namespace Tts {
export interface Tencent extends Agora.TencentTts {
Expand Down Expand Up @@ -114,4 +115,8 @@ export namespace Tts {
export interface Mistral extends Agora.MistralTts {
vendor: "mistral";
}

export interface Typecast extends Agora.TypecastTts {
vendor: "typecast";
}
}
12 changes: 12 additions & 0 deletions src/api/types/TypecastTts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Agora from "../index.js";

/**
* Typecast Text-to-Speech configuration.
*/
export interface TypecastTts {
params: Agora.TypecastTtsParams;
/** Controls whether the TTS module skips bracketed content when reading LLM response text. */
skip_patterns?: number[];
}
15 changes: 15 additions & 0 deletions src/api/types/TypecastTtsParams.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// This file was auto-generated by Fern from our API Definition.

/**
* Typecast TTS configuration parameters.
*/
export interface TypecastTtsParams {
/** Typecast API key. */
api_key: string;
/** Typecast voice identifier (for example, "tc_60e5426de8b95f1d3000d7b5"). */
voice_id: string;
/** Typecast TTS model name (for example, "ssfm-v30"). */
model: string;
/** Accepts any additional properties */
[key: string]: any;
}
3 changes: 3 additions & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export * from "./DeepgramTtsParams.js";
export * from "./ElevenLabsTts.js";
export * from "./ElevenLabsTtsParams.js";
export * from "./FengmingAsr.js";
export * from "./FengmingAsrParams.js";
export * from "./FishAudioTts.js";
export * from "./FishAudioTtsParams.js";
export * from "./GenericHttpTts.js";
Expand Down Expand Up @@ -80,6 +81,8 @@ export * from "./TencentAsrParams.js";
export * from "./TencentTts.js";
export * from "./TencentTtsParams.js";
export * from "./Tts.js";
export * from "./TypecastTts.js";
export * from "./TypecastTtsParams.js";
export * from "./XAiAsr.js";
export * from "./XAiAsrParams.js";
export * from "./XAiTts.js";
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SDK_VERSION = "v2.5.0";
export const SDK_VERSION = "v2.6.0";
Loading