Refactor VoiceAgent: Extract types and default configurations into separate types.ts file; remove unused StreamBuffer file

This commit is contained in:
Bijit Mondal
2026-02-19 16:01:25 +05:30
parent ce10d521f3
commit ac505c4ed9
23 changed files with 3570 additions and 82 deletions

View File

@@ -1 +1,22 @@
// Agents
export { VoiceAgent, type VoiceAgentOptions } from "./VoiceAgent";
export {
VideoAgent,
type VideoAgentOptions,
type VideoFrame,
type AudioData,
type VideoAgentConfig,
type FrameContext,
type FrameTriggerReason,
} from "./VideoAgent";
// Shared types
export {
type SpeechChunk,
type StreamingSpeechConfig,
type HistoryConfig,
type StopWhenCondition,
DEFAULT_STREAMING_SPEECH_CONFIG,
DEFAULT_HISTORY_CONFIG,
DEFAULT_MAX_AUDIO_SIZE,
} from "./types";