-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(a) Prompt OM refined (b) Interactive Agents (c) HealthData sample (#81)
- Composable Prompt and Prompt Section builds - Interactive Agents, Chat history. - Intent Router - HealthData example now also does Conditions. - Config improvements
- Loading branch information
Showing
61 changed files
with
860 additions
and
272 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<RollForward>LatestMajor</RollForward> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>annotations</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="..\appSettings.json" Link="appSettings.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="Exists('..\appSettings.Development.json')"> | ||
<Content Include="..\appSettings.Development.json" Link="appSettings.Development.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\typechat.app\TypeChat.App.csproj" /> | ||
<ProjectReference Include="..\..\src\typechat.dialog\TypeChat.Dialog.csproj" /> | ||
<ProjectReference Include="..\..\src\typechat.sk\TypeChat.SemanticKernel.csproj" /> | ||
<ProjectReference Include="..\..\src\typechat\TypeChat.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="input.txt"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |
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,80 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
using System; | ||
using System.Text; | ||
using System.Text.Json; | ||
using System.Text.Json.Serialization; | ||
using System.ComponentModel.DataAnnotations; | ||
using Microsoft.TypeChat.Schema; | ||
using Microsoft.TypeChat.Dialog; | ||
|
||
namespace HealthData; | ||
|
||
public class Quantity | ||
{ | ||
[Comment("Exact number")] | ||
public double Value { get; set; } | ||
[Comment("UNITS include mg, kg, cm, pounds, liter, ml, tablet, pill, cup, per-day, per-week..ETC")] | ||
public string Units { get; set; } | ||
} | ||
|
||
public class ApproxQuantity | ||
{ | ||
[JsonRequired] | ||
[Comment("Use if no precise quantity")] | ||
public string DisplayText { get; set; } | ||
|
||
[Comment("Optional: only if precise quantities are available")] | ||
public Quantity? Quantity { get; set; } | ||
} | ||
|
||
public class ApproxDateTime | ||
{ | ||
[JsonRequired] | ||
[Comment("Use if no precise date")] | ||
public string DisplayText { get; set; } | ||
|
||
[Comment("If precise timestamp can be set")] | ||
public DateTime? Timestamp { get; set; } | ||
} | ||
|
||
public class Medication | ||
{ | ||
public string Name { get; set; } | ||
|
||
[Comment("E.g. 2 tablets, 1 cup")] | ||
[Required] | ||
public ApproxQuantity Dose { get; set; } | ||
|
||
[Comment("E.g. twice a day, ")] | ||
[Required] | ||
public ApproxQuantity Frequency { get; set; } | ||
|
||
[Comment("E.g. 50 mg")] | ||
[Required] | ||
public ApproxQuantity Strength { get; set; } | ||
} | ||
|
||
[Comment("Disease, ailment, injury etc")] | ||
public class Condition | ||
{ | ||
public string Name { get; set; } | ||
|
||
[JsonVocab("active | recurrence | relapse | inactive | remission | resolved | unknown")] | ||
public string Status { get; set; } | ||
|
||
[Required] | ||
public ApproxDateTime StartDate { get; set; } | ||
|
||
[Required] | ||
[Comment("If the disease ended")] | ||
public ApproxDateTime? EndDate { get; set; } | ||
} | ||
|
||
public class HealthData | ||
{ | ||
public Medication? Medication { get; set; } | ||
public Condition? Condition { get; set; } | ||
} | ||
|
||
public class HealthDataResponse : AgentResponse<HealthData> { } |
Oops, something went wrong.