"use strict";
// This file was auto-generated by Fern from our API Definition.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConversationHistoryTranscriptResponseModel = void 0;
const core = __importStar(require("../../core"));
const AgentMetadata_1 = require("./AgentMetadata");
const ChatSourceMedium_1 = require("./ChatSourceMedium");
const ConversationHistoryMultivoiceMessageModel_1 = require("./ConversationHistoryMultivoiceMessageModel");
const ConversationHistoryTranscriptFileInputResponseModel_1 = require("./ConversationHistoryTranscriptFileInputResponseModel");
const ConversationHistoryTranscriptResponseModelRole_1 = require("./ConversationHistoryTranscriptResponseModelRole");
const ConversationHistoryTranscriptResponseModelToolResultsItem_1 = require("./ConversationHistoryTranscriptResponseModelToolResultsItem");
const ConversationHistoryTranscriptToolCallCommonModelOutput_1 = require("./ConversationHistoryTranscriptToolCallCommonModelOutput");
const ConversationTurnMetrics_1 = require("./ConversationTurnMetrics");
const LlmUsageOutput_1 = require("./LlmUsageOutput");
const RagRetrievalInfo_1 = require("./RagRetrievalInfo");
const UserFeedback_1 = require("./UserFeedback");
exports.ConversationHistoryTranscriptResponseModel = core.serialization.object({
    role: ConversationHistoryTranscriptResponseModelRole_1.ConversationHistoryTranscriptResponseModelRole,
    agentMetadata: core.serialization.property("agent_metadata", AgentMetadata_1.AgentMetadata.optional()),
    message: core.serialization.string().optional(),
    multivoiceMessage: core.serialization.property("multivoice_message", ConversationHistoryMultivoiceMessageModel_1.ConversationHistoryMultivoiceMessageModel.optional()),
    toolCalls: core.serialization.property("tool_calls", core.serialization.list(ConversationHistoryTranscriptToolCallCommonModelOutput_1.ConversationHistoryTranscriptToolCallCommonModelOutput).optional()),
    toolResults: core.serialization.property("tool_results", core.serialization.list(ConversationHistoryTranscriptResponseModelToolResultsItem_1.ConversationHistoryTranscriptResponseModelToolResultsItem).optional()),
    feedback: UserFeedback_1.UserFeedback.optional(),
    llmOverride: core.serialization.property("llm_override", core.serialization.string().optional()),
    timeInCallSecs: core.serialization.property("time_in_call_secs", core.serialization.number()),
    conversationTurnMetrics: core.serialization.property("conversation_turn_metrics", ConversationTurnMetrics_1.ConversationTurnMetrics.optional()),
    ragRetrievalInfo: core.serialization.property("rag_retrieval_info", RagRetrievalInfo_1.RagRetrievalInfo.optional()),
    llmUsage: core.serialization.property("llm_usage", LlmUsageOutput_1.LlmUsageOutput.optional()),
    interrupted: core.serialization.boolean().optional(),
    originalMessage: core.serialization.property("original_message", core.serialization.string().optional()),
    sourceMedium: core.serialization.property("source_medium", ChatSourceMedium_1.ChatSourceMedium.optional()),
    sourceEventId: core.serialization.property("source_event_id", core.serialization.number().optional()),
    fileInput: core.serialization.property("file_input", ConversationHistoryTranscriptFileInputResponseModel_1.ConversationHistoryTranscriptFileInputResponseModel.optional()),
});
