File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
src/Cnblogs.DashScope.Core Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 3
3
/// <summary>
4
4
/// Inputs for application call.
5
5
/// </summary>
6
- public class ApplicationInput
6
+ /// <typeparam name="TBizContent">Type of the BizContent.</typeparam>
7
+ public class ApplicationInput < TBizContent >
8
+ where TBizContent : class
7
9
{
8
10
/// <summary>
9
11
/// The prompt for model to generate response upon. Optional when <see cref="Messages"/> has been set.
@@ -32,17 +34,14 @@ public class ApplicationInput
32
34
/// List of image urls for inputs.
33
35
/// </summary>
34
36
public IEnumerable < string > ? ImageList { get ; set ; }
35
- }
36
37
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
- {
44
38
/// <summary>
45
39
/// User defined content.
46
40
/// </summary>
47
41
public TBizContent ? Content { get ; set ; } = null ;
48
42
}
43
+
44
+ /// <summary>
45
+ /// Inputs for application call.
46
+ /// </summary>
47
+ public class ApplicationInput : ApplicationInput < Dictionary < string , object ? > > ;
You can’t perform that action at this time.
0 commit comments