참고소스 수정본
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Firecrawl.Models;
|
||||
|
||||
/// <summary>
|
||||
/// JSON extraction format specification for use in ScrapeOptions.Formats.
|
||||
/// </summary>
|
||||
public class JsonFormat
|
||||
{
|
||||
[JsonPropertyName("type")]
|
||||
public string Type { get; } = "json";
|
||||
|
||||
[JsonPropertyName("prompt")]
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public string? Prompt { get; set; }
|
||||
|
||||
[JsonPropertyName("schema")]
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public Dictionary<string, object>? Schema { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user