Skip to content

InterviewOrchestrator

Defined in: main/services/interview-orchestrator.ts:28

Orchestrates real-time voice interviews, managing LLM interactions, TTS, and session state.

new InterviewOrchestrator(sessionManager, ttsManager): InterviewOrchestrator

Defined in: main/services/interview-orchestrator.ts:41

Creates a new interview orchestrator.

InterviewSessionManager

The session manager for persisting interview data.

TTSProviderManager

The TTS provider manager for speech synthesis.

InterviewOrchestrator

endInterview(isComplete?): Promise<void>

Defined in: main/services/interview-orchestrator.ts:199

Ends the current interview session and resets orchestrator state.

boolean = true

Whether the interview completed normally (defaults to true).

Promise<void>


generateOpener(): Promise<string>

Defined in: main/services/interview-orchestrator.ts:267

Generates the opening interview question based on the job description and resume.

Promise<string>

The opening question text.


generateSummary(sessionId): Promise<InterviewSummary>

Defined in: main/services/interview-orchestrator.ts:220

Generates an AI-powered summary of the interview with ratings, strengths, and improvement areas.

string

The session to generate a summary for.

Promise<InterviewSummary>

The interview summary with average rating and feedback areas.


getConversationHistory(): object[]

Defined in: main/services/interview-orchestrator.ts:465

Returns a copy of the conversation history.

object[]

An array of conversation messages with role and content.


getCurrentTurn(): number

Defined in: main/services/interview-orchestrator.ts:457

Returns the current turn number in the interview.

number

The current turn number.


getSessionId(): string | null

Defined in: main/services/interview-orchestrator.ts:152

Returns the current active session ID.

string | null

The session ID, or null if no interview is active.


processUserResponse(userText, audioPath?): Promise<InterviewTurn>

Defined in: main/services/interview-orchestrator.ts:82

Processes a user’s response, generates feedback and the next interview question.

string

The transcribed text of the user’s spoken response.

string

Optional path to the saved audio file.

Promise<InterviewTurn>

The interview turn data including the next question and feedback.


saveQuestionAudio(audioBuffer): Promise<void>

Defined in: main/services/interview-orchestrator.ts:160

Saves the TTS-generated question audio for the current turn.

Buffer

The raw audio data to save.

Promise<void>


saveUserAudio(audioBuffer): Promise<void>

Defined in: main/services/interview-orchestrator.ts:179

Saves the user’s recorded audio for the current turn.

Buffer

The raw audio data to save.

Promise<void>


startRealTimeVoiceInterview(config): Promise<void>

Defined in: main/services/interview-orchestrator.ts:50

Initializes a new real-time voice interview session with the given configuration.

InterviewConfig

The interview configuration including session ID, LLM provider, and TTS settings.

Promise<void>