-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from cnblogs/provide-pure-api-access-for-sk
feat: provide pure api access for semantic kernel
- Loading branch information
Showing
122 changed files
with
512 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
sample/Cnblogs.DashScope.Sample/WeatherReportParameters.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Text.Json.Serialization; | ||
using Json.More; | ||
using Json.Schema.Generation; | ||
|
||
namespace Cnblogs.DashScope.Sample; | ||
|
||
public record WeatherReportParameters( | ||
[property: Required] | ||
[property: Description("要获取天气的省市名称,例如浙江省杭州市")] | ||
string Location, | ||
[property: JsonConverter(typeof(EnumStringConverter<TemperatureUnit>))] | ||
[property: Description("温度单位")] | ||
TemperatureUnit Unit = TemperatureUnit.Celsius); | ||
|
||
public enum TemperatureUnit | ||
{ | ||
Celsius, | ||
Fahrenheit | ||
} |
Oops, something went wrong.