Skip to content

Commit 347ca2a

Browse files
authored
Merge pull request Azure#17 from yulin-li/yulin/interim-response
rename filler response -> interim response
2 parents 9f102a5 + 0c37795 commit 347ca2a

3 files changed

Lines changed: 148 additions & 148 deletions

File tree

specification/ai/data-plane/VoiceLive/client.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ using Azure.ClientGenerator.Core;
826826
"javascript"
827827
);
828828

829-
@@clientName(VoiceLive.FillerResponseConfigBase.latency_threshold_ms,
829+
@@clientName(VoiceLive.InterimResponseConfigBase.latency_threshold_ms,
830830
"latencyThresholdInMs",
831831
"javascript"
832832
);

specification/ai/data-plane/VoiceLive/custom.tsp

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ model RequestSession {
8787
@added(Versions.v2026_01_01_preview)
8888
reasoning_effort?: ReasoningEffort;
8989

90-
/** Configuration for filler response generation during latency or tool calls. */
90+
/** Configuration for interim response generation during latency or tool calls. */
9191
@added(Versions.v2026_01_01_preview)
92-
filler_response?: FillerResponseConfig;
92+
interim_response?: InterimResponseConfig;
9393
}
9494

9595
/**
@@ -747,91 +747,91 @@ model AgentConfig {
747747
thread_id: string;
748748
}
749749

750-
// --- Filler Response Configuration -----------------------------------------
750+
// --- Interim Response Configuration ----------------------------------------
751751

752-
/** Triggers that can activate filler response generation. */
752+
/** Triggers that can activate interim response generation. */
753753
@added(Versions.v2026_01_01_preview)
754-
union FillerTrigger {
754+
union InterimResponseTrigger {
755755
string,
756756

757-
/** Trigger filler when response latency exceeds threshold. */
757+
/** Trigger interim response when response latency exceeds threshold. */
758758
latency: "latency",
759759

760-
/** Trigger filler when a tool call is being executed. */
760+
/** Trigger interim response when a tool call is being executed. */
761761
tool: "tool",
762762
}
763763

764-
/** Union of filler response configuration types. */
765-
#suppress "@azure-tools/typespec-autorest/union-unsupported" // Discriminated union for filler config types.
764+
/** Union of interim response configuration types. */
765+
#suppress "@azure-tools/typespec-autorest/union-unsupported" // Discriminated union for interim response config types.
766766
@added(Versions.v2026_01_01_preview)
767-
union FillerResponseConfig {
768-
BasicFillerResponseConfig,
769-
LlmFillerResponseConfig,
767+
union InterimResponseConfig {
768+
StaticInterimResponseConfig,
769+
LlmInterimResponseConfig,
770770
}
771771

772-
/** Base model for filler response configuration. */
772+
/** Base model for interim response configuration. */
773773
#suppress "@azure-tools/typespec-azure-core/casing-style" // Service message format is snake_case to remain close to OpenAI style.
774774
@added(Versions.v2026_01_01_preview)
775775
@discriminator("type")
776776
@usage(RequestUsage)
777-
model FillerResponseConfigBase {
778-
/** The type of filler response configuration. */
779-
type: FillerResponseConfigType;
777+
model InterimResponseConfigBase {
778+
/** The type of interim response configuration. */
779+
type: InterimResponseConfigType;
780780

781781
/**
782-
* List of triggers that can fire the filler. Any trigger can activate the filler (OR logic).
782+
* List of triggers that can fire the interim response. Any trigger can activate it (OR logic).
783783
* Supported: 'latency', 'tool'.
784784
*/
785-
triggers?: FillerTrigger[] = #[FillerTrigger.latency];
785+
triggers?: InterimResponseTrigger[] = #[InterimResponseTrigger.latency];
786786

787-
/** Latency threshold in milliseconds before triggering filler response. Default is 2000ms. */
787+
/** Latency threshold in milliseconds before triggering interim response. Default is 2000ms. */
788788
@minValue(0)
789789
latency_threshold_ms?: int32;
790790
}
791791

792-
/** Filler response configuration types. */
792+
/** Interim response configuration types. */
793793
@added(Versions.v2026_01_01_preview)
794-
union FillerResponseConfigType {
794+
union InterimResponseConfigType {
795795
string,
796796

797-
/** Static filler configuration type. */
798-
static_filler: "static_filler",
797+
/** Static interim response configuration type. */
798+
static_interim_response: "static_interim_response",
799799

800-
/** LLM-based filler configuration type. */
801-
llm_filler: "llm_filler",
800+
/** LLM-based interim response configuration type. */
801+
llm_interim_response: "llm_interim_response",
802802
}
803803

804804
/**
805-
* Configuration for basic/static filler response generation.
805+
* Configuration for static interim response generation.
806806
* Randomly selects from configured texts when any trigger condition is met.
807807
*/
808808
#suppress "@azure-tools/typespec-azure-core/casing-style" // Service message format is snake_case to remain close to OpenAI style.
809809
@added(Versions.v2026_01_01_preview)
810810
@usage(RequestUsage)
811-
model BasicFillerResponseConfig extends FillerResponseConfigBase {
812-
type: FillerResponseConfigType.static_filler;
811+
model StaticInterimResponseConfig extends InterimResponseConfigBase {
812+
type: InterimResponseConfigType.static_interim_response;
813813

814-
/** List of filler text options to randomly select from. */
814+
/** List of interim response text options to randomly select from. */
815815
texts?: string[];
816816
}
817817

818818
/**
819-
* Configuration for LLM-based filler response generation.
820-
* Uses LLM to generate context-aware filler responses when any trigger condition is met.
819+
* Configuration for LLM-based interim response generation.
820+
* Uses LLM to generate context-aware interim responses when any trigger condition is met.
821821
*/
822822
#suppress "@azure-tools/typespec-azure-core/casing-style" // Service message format is snake_case to remain close to OpenAI style.
823823
@added(Versions.v2026_01_01_preview)
824824
@usage(RequestUsage)
825-
model LlmFillerResponseConfig extends FillerResponseConfigBase {
826-
type: FillerResponseConfigType.llm_filler;
825+
model LlmInterimResponseConfig extends InterimResponseConfigBase {
826+
type: InterimResponseConfigType.llm_interim_response;
827827

828-
/** The model to use for LLM-based filler generation. Default is gpt-4.1-mini. */
828+
/** The model to use for LLM-based interim response generation. Default is gpt-4.1-mini. */
829829
`model`?: string;
830830

831-
/** Custom instructions for generating filler responses. If not provided, a default prompt is used. */
831+
/** Custom instructions for generating interim responses. If not provided, a default prompt is used. */
832832
instructions?: string;
833833

834-
/** Maximum number of tokens to generate for the filler response. */
834+
/** Maximum number of tokens to generate for the interim response. */
835835
@minValue(1)
836836
max_completion_tokens?: int32 = 50;
837837
}

0 commit comments

Comments
 (0)