DotNetCore.SKIT.FlurlHttpCl.../src/SKIT.FlurlHttpClient.Wechat.OpenAI/Models/OpenApiNLP/OpenApiNLPNewsAbstractionResponse.cs
2021-10-11 20:49:50 +08:00

40 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
namespace SKIT.FlurlHttpClient.Wechat.OpenAI.Models
{
/// <summary>
/// <para>表示 [POST] /openapi/nlp/news-abstraction/{TOKEN} 接口的响应。</para>
/// </summary>
public class OpenApiNLPNewsAbstractionResponse : WechatOpenAIResponse<OpenApiNLPNewsAbstractionResponse.Types.Data>
{
public static class Types
{
public class Data
{
/// <summary>
/// 获取或设置摘要提取的结果。
/// </summary>
[Newtonsoft.Json.JsonProperty("abstraction")]
[System.Text.Json.Serialization.JsonPropertyName("abstraction")]
public string Result { get; set; } = default!;
/// <summary>
/// 获取或设置是否适合提取摘要的分类标签。
/// </summary>
[Newtonsoft.Json.JsonProperty("classification")]
[System.Text.Json.Serialization.JsonPropertyName("classification")]
public bool HasClassification { get; set; }
/// <summary>
/// 获取或设置分值范围01
/// </summary>
[Newtonsoft.Json.JsonProperty("prob")]
[System.Text.Json.Serialization.JsonPropertyName("prob")]
public double Score { get; set; }
}
}
}
}