mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 06:27:21 +00:00
Generated the JSON contracts of providers, the runtime, and services at compile time (#1150)
This commit is contained in:
1 parent
e954881fda
commit
24e3c22db3
140 files changed
+1415
-292
No files matched your search
+1
-1
@@ -8,5 +8,5 @@ internal sealed record StaanQueryInfo
|
||||
/// <summary>
|
||||
/// The query Staan searched for after correcting it, or empty when it searched what it was given.
|
||||
/// </summary>
|
||||
public string AlteredQuery { get; init; } = string.Empty;
|
||||
public string AlteredQuery { get; set; } = string.Empty;
|
||||
}
|
||||
+3
-3
@@ -16,15 +16,15 @@ internal sealed record StaanSearchRequest
|
||||
/// What to search for. Staan rejects a query longer than 400 characters.
|
||||
/// </summary>
|
||||
[JsonPropertyName("q")]
|
||||
public required string Query { get; init; }
|
||||
public required string Query { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The market to search in. Staan offers de-de, en-us, and fr-fr, and defaults to fr-fr.
|
||||
/// </summary>
|
||||
public string? Market { get; init; }
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Where in the result list to start, in steps of ten up to 30, or null for the first page.
|
||||
/// </summary>
|
||||
public int? Offset { get; init; }
|
||||
public int? Offset { get; set; }
|
||||
}
|
||||
+2
-2
@@ -10,7 +10,7 @@ namespace AIStudio.Tools.ToolCallingSystem.ToolCallingImplementations.WebSearch.
|
||||
/// </remarks>
|
||||
internal sealed record StaanSearchResponse
|
||||
{
|
||||
public StaanQueryInfo? Query { get; init; }
|
||||
public StaanQueryInfo? Query { get; set; }
|
||||
|
||||
public StaanWebSection? Web { get; init; }
|
||||
public StaanWebSection? Web { get; set; }
|
||||
}
|
||||
+3
-3
@@ -10,9 +10,9 @@ namespace AIStudio.Tools.ToolCallingSystem.ToolCallingImplementations.WebSearch.
|
||||
/// </remarks>
|
||||
internal sealed record StaanSearchResult
|
||||
{
|
||||
public string Title { get; init; } = string.Empty;
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
public string Url { get; init; } = string.Empty;
|
||||
public string Url { get; set; } = string.Empty;
|
||||
|
||||
public string Snippet { get; init; } = string.Empty;
|
||||
public string Snippet { get; set; } = string.Empty;
|
||||
}
|
||||
+1
-1
@@ -5,5 +5,5 @@ namespace AIStudio.Tools.ToolCallingSystem.ToolCallingImplementations.WebSearch.
|
||||
/// </summary>
|
||||
internal sealed record StaanWebSection
|
||||
{
|
||||
public IReadOnlyList<StaanSearchResult> Results { get; init; } = [];
|
||||
public IReadOnlyList<StaanSearchResult> Results { get; set; } = [];
|
||||
}
|
||||
Reference in new issue
Block a user