Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
{
foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
}
}

}
}

Expand All @@ -43,6 +51,8 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization
if (__jsonProps.Contains("begin_message_delay_ms")) __score1++;
if (__jsonProps.Contains("boosted_keywords")) __score1++;
if (__jsonProps.Contains("custom_stt_config")) __score1++;
if (__jsonProps.Contains("custom_stt_config.endpointing_ms")) __score1++;
if (__jsonProps.Contains("custom_stt_config.provider")) __score1++;
if (__jsonProps.Contains("data_storage_retention_days")) __score1++;
if (__jsonProps.Contains("data_storage_setting")) __score1++;
if (__jsonProps.Contains("denoising_mode")) __score1++;
Expand All @@ -52,15 +62,29 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization
if (__jsonProps.Contains("end_call_after_silence_ms")) __score1++;
if (__jsonProps.Contains("fallback_voice_ids")) __score1++;
if (__jsonProps.Contains("guardrail_config")) __score1++;
if (__jsonProps.Contains("guardrail_config.input_topics")) __score1++;
if (__jsonProps.Contains("guardrail_config.output_topics")) __score1++;
if (__jsonProps.Contains("handbook_config")) __score1++;
if (__jsonProps.Contains("handbook_config.ai_disclosure")) __score1++;
if (__jsonProps.Contains("handbook_config.default_personality")) __score1++;
if (__jsonProps.Contains("handbook_config.echo_verification")) __score1++;
if (__jsonProps.Contains("handbook_config.high_empathy")) __score1++;
if (__jsonProps.Contains("handbook_config.nato_phonetic_alphabet")) __score1++;
if (__jsonProps.Contains("handbook_config.natural_filler_words")) __score1++;
if (__jsonProps.Contains("handbook_config.scope_boundaries")) __score1++;
if (__jsonProps.Contains("handbook_config.smart_matching")) __score1++;
if (__jsonProps.Contains("handbook_config.speech_normalization")) __score1++;
if (__jsonProps.Contains("interruption_sensitivity")) __score1++;
if (__jsonProps.Contains("is_public")) __score1++;
if (__jsonProps.Contains("ivr_option")) __score1++;
if (__jsonProps.Contains("ivr_option.action")) __score1++;
if (__jsonProps.Contains("language")) __score1++;
if (__jsonProps.Contains("max_call_duration_ms")) __score1++;
if (__jsonProps.Contains("normalize_for_speech")) __score1++;
if (__jsonProps.Contains("opt_in_signed_url")) __score1++;
if (__jsonProps.Contains("pii_config")) __score1++;
if (__jsonProps.Contains("pii_config.categories")) __score1++;
if (__jsonProps.Contains("pii_config.mode")) __score1++;
if (__jsonProps.Contains("post_call_analysis_data")) __score1++;
if (__jsonProps.Contains("post_call_analysis_model")) __score1++;
if (__jsonProps.Contains("pronunciation_dictionary")) __score1++;
Expand All @@ -73,6 +97,9 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization
if (__jsonProps.Contains("stt_mode")) __score1++;
if (__jsonProps.Contains("timezone")) __score1++;
if (__jsonProps.Contains("user_dtmf_options")) __score1++;
if (__jsonProps.Contains("user_dtmf_options.digit_limit")) __score1++;
if (__jsonProps.Contains("user_dtmf_options.termination_key")) __score1++;
if (__jsonProps.Contains("user_dtmf_options.timeout_ms")) __score1++;
if (__jsonProps.Contains("version_description")) __score1++;
if (__jsonProps.Contains("vocab_specialization")) __score1++;
if (__jsonProps.Contains("voice_emotion")) __score1++;
Expand All @@ -83,6 +110,7 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization
if (__jsonProps.Contains("voicemail_detection_timeout_ms")) __score1++;
if (__jsonProps.Contains("voicemail_message")) __score1++;
if (__jsonProps.Contains("voicemail_option")) __score1++;
if (__jsonProps.Contains("voicemail_option.action")) __score1++;
if (__jsonProps.Contains("volume")) __score1++;
if (__jsonProps.Contains("webhook_events")) __score1++;
if (__jsonProps.Contains("webhook_timeout_ms")) __score1++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class AgentSwapNodeJsonConverter : global::System.Text.Json.Serialization
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ public class AlwaysEdgeJsonConverter : global::System.Text.Json.Serialization.Js
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
{
foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
}
}

}
}

Expand All @@ -32,6 +40,8 @@ public class AlwaysEdgeJsonConverter : global::System.Text.Json.Serialization.Js
if (__jsonProps.Contains("transition_condition")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("transition_condition")) __score1++;
if (__jsonProps.Contains("transition_condition.prompt")) __score1++;
if (__jsonProps.Contains("transition_condition.type")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class AnalysisDataJsonConverter : global::System.Text.Json.Serialization.
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class BranchNodeJsonConverter : global::System.Text.Json.Serialization.Js
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class BridgeTransferNodeJsonConverter : global::System.Text.Json.Serializ
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class CancelTransferNodeJsonConverter : global::System.Text.Json.Serializ
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ public class ChatAgentResponseJsonConverter : global::System.Text.Json.Serializa
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
{
foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
}
}

}
}

Expand All @@ -40,11 +48,19 @@ public class ChatAgentResponseJsonConverter : global::System.Text.Json.Serializa
if (__jsonProps.Contains("data_storage_setting")) __score1++;
if (__jsonProps.Contains("end_chat_after_silence_ms")) __score1++;
if (__jsonProps.Contains("guardrail_config")) __score1++;
if (__jsonProps.Contains("guardrail_config.input_topics")) __score1++;
if (__jsonProps.Contains("guardrail_config.output_topics")) __score1++;
if (__jsonProps.Contains("handbook_config")) __score1++;
if (__jsonProps.Contains("handbook_config.ai_disclosure")) __score1++;
if (__jsonProps.Contains("handbook_config.default_personality")) __score1++;
if (__jsonProps.Contains("handbook_config.high_empathy")) __score1++;
if (__jsonProps.Contains("handbook_config.scope_boundaries")) __score1++;
if (__jsonProps.Contains("is_public")) __score1++;
if (__jsonProps.Contains("language")) __score1++;
if (__jsonProps.Contains("opt_in_signed_url")) __score1++;
if (__jsonProps.Contains("pii_config")) __score1++;
if (__jsonProps.Contains("pii_config.categories")) __score1++;
if (__jsonProps.Contains("pii_config.mode")) __score1++;
if (__jsonProps.Contains("post_chat_analysis_data")) __score1++;
if (__jsonProps.Contains("post_chat_analysis_model")) __score1++;
if (__jsonProps.Contains("response_engine")) __score1++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class CodeNodeJsonConverter : global::System.Text.Json.Serialization.Json
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,27 @@ public class ComponentNodeJsonConverter : global::System.Text.Json.Serialization
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
{
foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
}
}

}
}

var __score0 = 0;
if (__jsonProps.Contains("display_position")) __score0++;
if (__jsonProps.Contains("display_position.x")) __score0++;
if (__jsonProps.Contains("display_position.y")) __score0++;
if (__jsonProps.Contains("global_node_setting")) __score0++;
if (__jsonProps.Contains("global_node_setting.condition")) __score0++;
if (__jsonProps.Contains("global_node_setting.cool_down")) __score0++;
if (__jsonProps.Contains("global_node_setting.go_back_conditions")) __score0++;
if (__jsonProps.Contains("global_node_setting.negative_finetune_examples")) __score0++;
if (__jsonProps.Contains("global_node_setting.positive_finetune_examples")) __score0++;
if (__jsonProps.Contains("id")) __score0++;
if (__jsonProps.Contains("name")) __score0++;
var __score1 = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,31 @@ public class ConversationFlowJsonConverter : global::System.Text.Json.Serializat
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
{
foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
}
}

}
}

var __score0 = 0;
if (__jsonProps.Contains("begin_after_user_silence_ms")) __score0++;
if (__jsonProps.Contains("kb_config")) __score0++;
if (__jsonProps.Contains("kb_config.filter_score")) __score0++;
if (__jsonProps.Contains("kb_config.top_k")) __score0++;
if (__jsonProps.Contains("knowledge_base_ids")) __score0++;
if (__jsonProps.Contains("model_choice")) __score0++;
if (__jsonProps.Contains("model_temperature")) __score0++;
if (__jsonProps.Contains("start_speaker")) __score0++;
if (__jsonProps.Contains("tool_call_strict_mode")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("begin_tag_display_position")) __score1++;
if (__jsonProps.Contains("begin_tag_display_position.x")) __score1++;
if (__jsonProps.Contains("begin_tag_display_position.y")) __score1++;
if (__jsonProps.Contains("components")) __score1++;
if (__jsonProps.Contains("default_dynamic_variables")) __score1++;
if (__jsonProps.Contains("global_prompt")) __score1++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class ConversationFlowComponentResponseJsonConverter : global::System.Tex
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class ConversationFlowResponseJsonConverter : global::System.Text.Json.Se
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class ConversationNodeJsonConverter : global::System.Text.Json.Serializat
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,21 @@ public class CreateConversationFlowComponentRequestJsonConverter : global::Syste
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
{
foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
}
}

}
}

var __score0 = 0;
if (__jsonProps.Contains("begin_tag_display_position")) __score0++;
if (__jsonProps.Contains("begin_tag_display_position.x")) __score0++;
if (__jsonProps.Contains("begin_tag_display_position.y")) __score0++;
if (__jsonProps.Contains("mcps")) __score0++;
if (__jsonProps.Contains("name")) __score0++;
if (__jsonProps.Contains("nodes")) __score0++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class CreateOrganizationRequestJsonConverter : global::System.Text.Json.S
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class CustomFieldFilterJsonConverter : global::System.Text.Json.Serializa
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
10 changes: 10 additions & 0 deletions src/libs/RetellAI/Generated/RetellAI.JsonConverters.ElseEdge.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ public class ElseEdgeJsonConverter : global::System.Text.Json.Serialization.Json
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
{
foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
}
}

}
}

Expand All @@ -32,6 +40,8 @@ public class ElseEdgeJsonConverter : global::System.Text.Json.Serialization.Json
if (__jsonProps.Contains("transition_condition")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("transition_condition")) __score1++;
if (__jsonProps.Contains("transition_condition.prompt")) __score1++;
if (__jsonProps.Contains("transition_condition.type")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class EndNodeJsonConverter : global::System.Text.Json.Serialization.JsonC
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class ExtractDynamicVariablesNodeJsonConverter : global::System.Text.Json
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class FinetuneExampleUtteranceJsonConverter : global::System.Text.Json.Se
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class FunctionNodeJsonConverter : global::System.Text.Json.Serialization.
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class IvrActionJsonConverter : global::System.Text.Json.Serialization.Jso
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class MCPNodeJsonConverter : global::System.Text.Json.Serialization.JsonC
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class ModelChoiceJsonConverter : global::System.Text.Json.Serialization.J
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);

}
}

Expand Down
Loading
Loading