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,7 @@ public class AnthropicBashCodeExecutionContentJsonConverter : 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 AnthropicCallerJsonConverter : global::System.Text.Json.Serializati
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 AnthropicCodeExecutionContentJsonConverter : global::System.Text.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 AnthropicDocumentBlockParamSourceJsonConverter : 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,16 +23,28 @@ public class AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsJsonConver
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("cache_control")) __score0++;
if (__jsonProps.Contains("cache_control.ttl")) __score0++;
if (__jsonProps.Contains("cache_control.type")) __score0++;
if (__jsonProps.Contains("citations")) __score0++;
if (__jsonProps.Contains("text")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("cache_control")) __score1++;
if (__jsonProps.Contains("cache_control.ttl")) __score1++;
if (__jsonProps.Contains("cache_control.type")) __score1++;
if (__jsonProps.Contains("source")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __bestScore = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class AnthropicDocumentBlockSourceJsonConverter : global::System.Text.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 AnthropicImageBlockParamSourceJsonConverter : global::System.Text.J
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 AnthropicTextBlockParamCitationsItemsJsonConverter : global::System
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 AnthropicTextCitationJsonConverter : global::System.Text.Json.Seria
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 AnthropicTextEditorCodeExecutionContentJsonConverter : global::Syst
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 AnthropicToolSearchContentJsonConverter : 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,25 +23,39 @@ public class AnthropicUsageIterationJsonConverter : global::System.Text.Json.Ser
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("cache_creation")) __score0++;
if (__jsonProps.Contains("cache_creation.ephemeral_1h_input_tokens")) __score0++;
if (__jsonProps.Contains("cache_creation.ephemeral_5m_input_tokens")) __score0++;
if (__jsonProps.Contains("cache_creation_input_tokens")) __score0++;
if (__jsonProps.Contains("cache_read_input_tokens")) __score0++;
if (__jsonProps.Contains("input_tokens")) __score0++;
if (__jsonProps.Contains("output_tokens")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("cache_creation")) __score1++;
if (__jsonProps.Contains("cache_creation.ephemeral_1h_input_tokens")) __score1++;
if (__jsonProps.Contains("cache_creation.ephemeral_5m_input_tokens")) __score1++;
if (__jsonProps.Contains("cache_creation_input_tokens")) __score1++;
if (__jsonProps.Contains("cache_read_input_tokens")) __score1++;
if (__jsonProps.Contains("input_tokens")) __score1++;
if (__jsonProps.Contains("output_tokens")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("cache_creation")) __score2++;
if (__jsonProps.Contains("cache_creation.ephemeral_1h_input_tokens")) __score2++;
if (__jsonProps.Contains("cache_creation.ephemeral_5m_input_tokens")) __score2++;
if (__jsonProps.Contains("cache_creation_input_tokens")) __score2++;
if (__jsonProps.Contains("cache_read_input_tokens")) __score2++;
if (__jsonProps.Contains("input_tokens")) __score2++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ public class AnthropicWebFetchContentJsonConverter : global::System.Text.Json.Se
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 @@ -31,6 +39,10 @@ public class AnthropicWebFetchContentJsonConverter : global::System.Text.Json.Se
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("content")) __score1++;
if (__jsonProps.Contains("content.citations")) __score1++;
if (__jsonProps.Contains("content.source")) __score1++;
if (__jsonProps.Contains("content.title")) __score1++;
if (__jsonProps.Contains("content.type")) __score1++;
if (__jsonProps.Contains("retrieved_at")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("url")) __score1++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class AnthropicWebSearchToolResultContentJsonConverter : global::System.T
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 BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria
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 BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsJsonConverter : global
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 @@ -41,6 +49,8 @@ public class BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsJsonConverter : global
if (__jsonProps.Contains("type")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("input_audio")) __score3++;
if (__jsonProps.Contains("input_audio.data")) __score3++;
if (__jsonProps.Contains("input_audio.format")) __score3++;
if (__jsonProps.Contains("type")) __score3++;
var __bestScore = 0;
var __bestIndex = -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class BaseResponsesResultOutputItemsJsonConverter : global::System.Text.J
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 BaseResponsesResultToolsItemsJsonConverter : global::System.Text.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 @@ -35,35 +43,65 @@ public class BaseResponsesResultToolsItemsJsonConverter : global::System.Text.Js
var __score1 = 0;
if (__jsonProps.Contains("engine")) __score1++;
if (__jsonProps.Contains("filters")) __score1++;
if (__jsonProps.Contains("filters.allowed_domains")) __score1++;
if (__jsonProps.Contains("filters.excluded_domains")) __score1++;
if (__jsonProps.Contains("max_results")) __score1++;
if (__jsonProps.Contains("search_context_size")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("user_location")) __score1++;
if (__jsonProps.Contains("user_location.city")) __score1++;
if (__jsonProps.Contains("user_location.country")) __score1++;
if (__jsonProps.Contains("user_location.region")) __score1++;
if (__jsonProps.Contains("user_location.timezone")) __score1++;
if (__jsonProps.Contains("user_location.type")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("engine")) __score2++;
if (__jsonProps.Contains("filters")) __score2++;
if (__jsonProps.Contains("filters.allowed_domains")) __score2++;
if (__jsonProps.Contains("filters.excluded_domains")) __score2++;
if (__jsonProps.Contains("max_results")) __score2++;
if (__jsonProps.Contains("search_context_size")) __score2++;
if (__jsonProps.Contains("type")) __score2++;
if (__jsonProps.Contains("user_location")) __score2++;
if (__jsonProps.Contains("user_location.city")) __score2++;
if (__jsonProps.Contains("user_location.country")) __score2++;
if (__jsonProps.Contains("user_location.region")) __score2++;
if (__jsonProps.Contains("user_location.timezone")) __score2++;
if (__jsonProps.Contains("user_location.type")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("engine")) __score3++;
if (__jsonProps.Contains("filters")) __score3++;
if (__jsonProps.Contains("filters.allowed_domains")) __score3++;
if (__jsonProps.Contains("filters.excluded_domains")) __score3++;
if (__jsonProps.Contains("max_results")) __score3++;
if (__jsonProps.Contains("search_context_size")) __score3++;
if (__jsonProps.Contains("type")) __score3++;
if (__jsonProps.Contains("user_location")) __score3++;
if (__jsonProps.Contains("user_location.city")) __score3++;
if (__jsonProps.Contains("user_location.country")) __score3++;
if (__jsonProps.Contains("user_location.region")) __score3++;
if (__jsonProps.Contains("user_location.timezone")) __score3++;
if (__jsonProps.Contains("user_location.type")) __score3++;
var __score4 = 0;
if (__jsonProps.Contains("engine")) __score4++;
if (__jsonProps.Contains("filters")) __score4++;
if (__jsonProps.Contains("filters.allowed_domains")) __score4++;
if (__jsonProps.Contains("filters.excluded_domains")) __score4++;
if (__jsonProps.Contains("max_results")) __score4++;
if (__jsonProps.Contains("search_context_size")) __score4++;
if (__jsonProps.Contains("type")) __score4++;
if (__jsonProps.Contains("user_location")) __score4++;
if (__jsonProps.Contains("user_location.city")) __score4++;
if (__jsonProps.Contains("user_location.country")) __score4++;
if (__jsonProps.Contains("user_location.region")) __score4++;
if (__jsonProps.Contains("user_location.timezone")) __score4++;
if (__jsonProps.Contains("user_location.type")) __score4++;
var __score5 = 0;
if (__jsonProps.Contains("filters")) __score5++;
if (__jsonProps.Contains("max_num_results")) __score5++;
if (__jsonProps.Contains("ranking_options")) __score5++;
if (__jsonProps.Contains("ranking_options.ranker")) __score5++;
if (__jsonProps.Contains("ranking_options.score_threshold")) __score5++;
if (__jsonProps.Contains("type")) __score5++;
if (__jsonProps.Contains("vector_store_ids")) __score5++;
var __score6 = 0;
Expand All @@ -88,6 +126,8 @@ public class BaseResponsesResultToolsItemsJsonConverter : global::System.Text.Js
if (__jsonProps.Contains("background")) __score9++;
if (__jsonProps.Contains("input_fidelity")) __score9++;
if (__jsonProps.Contains("input_image_mask")) __score9++;
if (__jsonProps.Contains("input_image_mask.file_id")) __score9++;
if (__jsonProps.Contains("input_image_mask.image_url")) __score9++;
if (__jsonProps.Contains("model")) __score9++;
if (__jsonProps.Contains("moderation")) __score9++;
if (__jsonProps.Contains("output_compression")) __score9++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,46 @@ public class ChatContentItemsJsonConverter : 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("cache_control")) __score0++;
if (__jsonProps.Contains("cache_control.ttl")) __score0++;
if (__jsonProps.Contains("cache_control.type")) __score0++;
if (__jsonProps.Contains("text")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("image_url")) __score1++;
if (__jsonProps.Contains("image_url.detail")) __score1++;
if (__jsonProps.Contains("image_url.url")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("input_audio")) __score2++;
if (__jsonProps.Contains("input_audio.data")) __score2++;
if (__jsonProps.Contains("input_audio.format")) __score2++;
if (__jsonProps.Contains("type")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("type")) __score3++;
if (__jsonProps.Contains("video_url")) __score3++;
if (__jsonProps.Contains("video_url.url")) __score3++;
var __score4 = 0;
if (__jsonProps.Contains("type")) __score4++;
if (__jsonProps.Contains("video_url")) __score4++;
if (__jsonProps.Contains("video_url.url")) __score4++;
var __score5 = 0;
if (__jsonProps.Contains("file")) __score5++;
if (__jsonProps.Contains("file.file_data")) __score5++;
if (__jsonProps.Contains("file.file_id")) __score5++;
if (__jsonProps.Contains("file.filename")) __score5++;
if (__jsonProps.Contains("type")) __score5++;
var __bestScore = 0;
var __bestIndex = -1;
Expand Down
Loading