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 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 ? > > ;
You can’t perform that action at this time.
0 commit comments