Skip to content

Commit dd61f63

Browse files
committed
work
1 parent d806110 commit dd61f63

File tree

5 files changed

+28
-3
lines changed

5 files changed

+28
-3
lines changed

Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
</PropertyGroup>
55
<ItemGroup Label="Common">
66
<PackageVersion Include="Akka.Hosting" Version="1.5.40" />
7+
<PackageVersion Include="Microsoft.Extensions.AI.Abstractions" Version="9.4.0-preview.1.25207.5" />
78
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="9.0.4" />
89
<PackageVersion Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.11.1" />
910
<PackageVersion Include="OpenTelemetry.Instrumentation.Http" Version="1.11.1" />

src/0-hello-world/AI.HelloWorld.PromptApi/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using AI.Telemetry;
22
using Microsoft.Extensions.AI;
33
using Microsoft.OpenApi.Models;
4-
using Swashbuckle.AspNetCore;
54

65
var builder = WebApplication.CreateBuilder(args);
76

src/1-stateful-prompts/AI.StatefulPrompts.Business/AI.StatefulPrompts.Business.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
<ItemGroup>
1010
<PackageReference Include="Akka.Hosting" />
11+
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" />
1112
</ItemGroup>
1213

1314
</Project>

src/1-stateful-prompts/AI.StatefulPrompts.Business/Class1.cs

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using System.Collections.Immutable;
2+
using Akka.Actor;
3+
using Microsoft.Extensions.AI;
4+
5+
namespace AI.StatefulPrompts.Business;
6+
7+
/// <summary>
8+
/// An immutable record that represents the history of a prompt.
9+
/// </summary>
10+
/// <param name="PromptTitle">The title, to be assigned later.</param>
11+
/// <param name="CreatedAt">Start of the prompt history.</param>
12+
/// <param name="Messages"></param>
13+
public sealed record PromptHistory(string PromptTitle, DateTimeOffset CreatedAt, ImmutableStack<ChatMessage> Messages)
14+
{
15+
public DateTimeOffset LastUpdatedAt { get; } = DateTimeOffset.UtcNow;
16+
}
17+
18+
public sealed class PromptHistoryActor : UntypedActor
19+
{
20+
private IActorRef _signalRMessagingActor;
21+
22+
protected override void OnReceive(object message)
23+
{
24+
throw new NotImplementedException();
25+
}
26+
}

0 commit comments

Comments
 (0)