/** * Type-safe constants for agent configuration values. * Use these instead of raw strings to avoid typos and get IDE autocomplete. */ import { AgentThinkAgentManagementRequest as AgentThinkRequestNS } from "../api/resources/agentManagement/client/requests/AgentThinkAgentManagementRequest.js"; import { SpeakAgentsRequest as SpeakAgentsRequestNS } from "../api/resources/agents/client/requests/SpeakAgentsRequest.js"; import { StartAgentsRequest as StartAgentsRequestNS } from "../api/resources/agents/client/requests/StartAgentsRequest.js"; import { MllmTurnDetection as MllmTurnDetectionNS } from "../api/types/MllmTurnDetection.js"; /** Credential source for vendors that support Agora-managed credentials and BYOK. */ export declare const CredentialMode: { readonly Managed: "managed"; readonly Byok: "byok"; }; export type CredentialMode = (typeof CredentialMode)[keyof typeof CredentialMode]; /** Data channel: `"rtm"` | `"datastream"` */ export declare const DataChannel: typeof StartAgentsRequestNS.Properties.Parameters.DataChannel; /** RTC audio scenario: `"default"` | `"chorus"` | `"aiserver"` */ export declare const AudioScenario: typeof StartAgentsRequestNS.Properties.Parameters.AudioScenario; /** Silence action when timeout elapses: `"speak"` | `"think"` (avoids shadowing SilenceAction type) */ export declare const SilenceActionValues: typeof StartAgentsRequestNS.Properties.Parameters.SilenceConfig.Action; /** SAL mode: `"locking"` | `"recognition"` (avoids shadowing SalMode type) */ export declare const SalModeValues: typeof StartAgentsRequestNS.Properties.Sal.SalMode; /** Geofence area and exclude area constants */ export declare const Geofence: typeof StartAgentsRequestNS.Properties.Geofence; /** Filler word selection rule: `"shuffle"` | `"round_robin"` */ export declare const FillerWordsSelectionRule: typeof StartAgentsRequestNS.Properties.FillerWords.Content.StaticConfig.SelectionRule; /** * Turn detection type (deprecated; use `TurnDetectionNestedConfig.EndOfSpeech` instead). * - `AgoraVad`: Agora VAD * - `ServerVad`: Server-side VAD (MLLM only) * - `SemanticVad`: Semantic VAD (MLLM only) */ export declare const TurnDetectionTypeValues: typeof StartAgentsRequestNS.Properties.TurnDetection.Type; /** Interruption trigger mode: `"start_of_speech"` | `"keywords"` */ export declare const InterruptionModeValues: typeof StartAgentsRequestNS.Properties.Interruption.Mode; /** Interruption trigger mode: `"start_of_speech"` */ export declare const InterruptionModeStartOfSpeech: StartAgentsRequestNS.Properties.Interruption.Mode; /** Interruption trigger mode: `"keywords"` */ export declare const InterruptionModeKeywords: StartAgentsRequestNS.Properties.Interruption.Mode; /** Strategy when interruption is disabled: `"append"` | `"ignore"` */ export declare const InterruptionDisabledStrategy: typeof StartAgentsRequestNS.Properties.Interruption.DisabledConfig.Strategy; /** Strategy when interruption is disabled: append speech to the next turn. */ export declare const InterruptionDisabledStrategyAppend: StartAgentsRequestNS.Properties.Interruption.DisabledConfig.Strategy; /** Strategy when interruption is disabled: ignore speech while busy. */ export declare const InterruptionDisabledStrategyIgnore: StartAgentsRequestNS.Properties.Interruption.DisabledConfig.Strategy; /** Speak priority: `"INTERRUPT"` | `"APPEND"` | `"IGNORE"` */ export declare const SpeakPriorityValues: typeof SpeakAgentsRequestNS.Priority; /** Speak immediately by interrupting the current output. */ export declare const SpeakPriorityInterrupt: SpeakAgentsRequestNS.Priority; /** Queue the message after current output finishes. */ export declare const SpeakPriorityAppend: SpeakAgentsRequestNS.Priority; /** Drop the message if the agent is busy. */ export declare const SpeakPriorityIgnore: SpeakAgentsRequestNS.Priority; /** MLLM turn-detection mode: `"agora_vad"` | `"server_vad"` | `"semantic_vad"` */ export declare const MllmTurnDetectionModeValues: typeof MllmTurnDetectionNS.Mode; /** MLLM turn-detection mode: Agora VAD. */ export declare const MllmTurnDetectionModeAgoraVad: MllmTurnDetectionNS.Mode; /** MLLM turn-detection mode: server/vendor VAD. */ export declare const MllmTurnDetectionModeServerVad: MllmTurnDetectionNS.Mode; /** MLLM turn-detection mode: semantic VAD. */ export declare const MllmTurnDetectionModeSemanticVad: MllmTurnDetectionNS.Mode; /** Think action when the agent is listening: inject custom text without interrupting. */ export declare const ThinkOnListeningActionInject: AgentThinkRequestNS.OnListeningAction; /** Think action when the agent is listening: interrupt and start a new turn. */ export declare const ThinkOnListeningActionInterrupt: AgentThinkRequestNS.OnListeningAction; /** Think action when the agent is listening: ignore the request. */ export declare const ThinkOnListeningActionIgnore: AgentThinkRequestNS.OnListeningAction; /** Think action when the agent is thinking: interrupt and start a new turn. */ export declare const ThinkOnThinkingActionInterrupt: AgentThinkRequestNS.OnThinkingAction; /** Think action when the agent is thinking: ignore the request. */ export declare const ThinkOnThinkingActionIgnore: AgentThinkRequestNS.OnThinkingAction; /** Think action when the agent is speaking: interrupt and start a new turn. */ export declare const ThinkOnSpeakingActionInterrupt: AgentThinkRequestNS.OnSpeakingAction; /** Think action when the agent is speaking: ignore the request. */ export declare const ThinkOnSpeakingActionIgnore: AgentThinkRequestNS.OnSpeakingAction;