Skip to content

Commit 8d004d5

Browse files
committed
refactor: change inherit layout
1 parent 56739b1 commit 8d004d5

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/Cnblogs.DashScope.Core/ApplicationInput.cs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
/// <summary>
44
/// Inputs for application call.
55
/// </summary>
6-
public class ApplicationInput
6+
/// <typeparam name="TBizContent">Type of the BizContent.</typeparam>
7+
public class ApplicationInput<TBizContent>
8+
where TBizContent : class
79
{
810
/// <summary>
911
/// The prompt for model to generate response upon. Optional when <see cref="Messages"/> has been set.
@@ -32,17 +34,14 @@ public class ApplicationInput
3234
/// List of image urls for inputs.
3335
/// </summary>
3436
public IEnumerable<string>? ImageList { get; set; }
35-
}
3637

37-
/// <summary>
38-
/// Inputs for application call.
39-
/// </summary>
40-
/// <typeparam name="TBizContent">User defined custom content.</typeparam>
41-
public class ApplicationInput<TBizContent> : ApplicationInput
42-
where TBizContent : class
43-
{
4438
/// <summary>
4539
/// User defined content.
4640
/// </summary>
4741
public TBizContent? Content { get; set; } = null;
4842
}
43+
44+
/// <summary>
45+
/// Inputs for application call.
46+
/// </summary>
47+
public class ApplicationInput : ApplicationInput<Dictionary<string, object?>>;

0 commit comments

Comments
 (0)