diff --git a/StellarChat.sln b/StellarChat.sln index bc76130..17bc189 100644 --- a/StellarChat.sln +++ b/StellarChat.sln @@ -7,28 +7,25 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{381F052F-900 EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Server", "Server", "{DDE19268-BFEB-408E-A1A3-2CB70CEACFC3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StellarChat.Server.Api", "src\Server\StellarChat.Server.Api\StellarChat.Server.Api.csproj", "{3E504298-D0C4-4258-BF5F-1AF3D17268F9}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StellarChat.Server.Api", "src\Server\StellarChat.Server.Api\StellarChat.Server.Api.csproj", "{3E504298-D0C4-4258-BF5F-1AF3D17268F9}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{539F8333-E713-4AD1-AA62-91D7D0662D0C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StellarChat.Shared.Abstractions", "src\Shared\StellarChat.Shared.Abstractions\StellarChat.Shared.Abstractions.csproj", "{470A8621-8E42-4A16-9C38-1E5A9BDBB1AD}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StellarChat.Shared.Abstractions", "src\Shared\StellarChat.Shared.Abstractions\StellarChat.Shared.Abstractions.csproj", "{470A8621-8E42-4A16-9C38-1E5A9BDBB1AD}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StellarChat.Shared.Infrastructure", "src\Shared\StellarChat.Shared.Infrastructure\StellarChat.Shared.Infrastructure.csproj", "{EA54CE28-3736-457C-B83B-3500F3ED8D4B}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StellarChat.Shared.Infrastructure", "src\Shared\StellarChat.Shared.Infrastructure\StellarChat.Shared.Infrastructure.csproj", "{EA54CE28-3736-457C-B83B-3500F3ED8D4B}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Client", "Client", "{637E4293-DBD7-4C92-A1F8-B78E814EB07C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StellarChat.Client.Web", "src\Client\StellarChat.Client.Web\StellarChat.Client.Web.csproj", "{5BE990B7-4BAD-47D0-B845-C7F5A2EAE11D}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StellarChat.Client.Web", "src\Client\StellarChat.Client.Web\StellarChat.Client.Web.csproj", "{5BE990B7-4BAD-47D0-B845-C7F5A2EAE11D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StellarChat.Shared.Contracts", "src\Shared\StellarChat.Shared.Contracts\StellarChat.Shared.Contracts.csproj", "{0707D9C8-3E07-4C31-8070-E6A4DFD8B3C7}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StellarChat.Shared.Contracts", "src\Shared\StellarChat.Shared.Contracts\StellarChat.Shared.Contracts.csproj", "{0707D9C8-3E07-4C31-8070-E6A4DFD8B3C7}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {3E504298-D0C4-4258-BF5F-1AF3D17268F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3E504298-D0C4-4258-BF5F-1AF3D17268F9}.Debug|Any CPU.Build.0 = Debug|Any CPU @@ -51,6 +48,9 @@ Global {0707D9C8-3E07-4C31-8070-E6A4DFD8B3C7}.Release|Any CPU.ActiveCfg = Release|Any CPU {0707D9C8-3E07-4C31-8070-E6A4DFD8B3C7}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection GlobalSection(NestedProjects) = preSolution {DDE19268-BFEB-408E-A1A3-2CB70CEACFC3} = {381F052F-900C-4243-B27A-A2D7788E09C9} {3E504298-D0C4-4258-BF5F-1AF3D17268F9} = {DDE19268-BFEB-408E-A1A3-2CB70CEACFC3} diff --git a/src/Client/StellarChat.Client.Web/Components/AgentsDrawer.razor b/src/Client/StellarChat.Client.Web/Components/AgentsDrawer.razor new file mode 100644 index 0000000..e91403c --- /dev/null +++ b/src/Client/StellarChat.Client.Web/Components/AgentsDrawer.razor @@ -0,0 +1,16 @@ + + + My App + + + Store + Library + Community + + + +@code +{ + [Parameter] + public bool IsAgentsDrawerOpen { get; set; } +} diff --git a/src/Client/StellarChat.Client.Web/Components/Drawer.razor b/src/Client/StellarChat.Client.Web/Components/Drawer.razor index 7df8e17..df37fd6 100644 --- a/src/Client/StellarChat.Client.Web/Components/Drawer.razor +++ b/src/Client/StellarChat.Client.Web/Components/Drawer.razor @@ -15,9 +15,9 @@ - - - + @* *@ + + @* *@ @@ -46,12 +46,21 @@ + @code { [Parameter] public bool IsDrawerOpen { get; set; } + bool open; + private void ToggleDrawer() + { + Console.WriteLine($"before IsAgentsDrawerOpen: {open}"); + open = !open; + Console.WriteLine($"after IsAgentsDrawerOpen: {open}"); + + } public string SearchText { get; set; } = string.Empty; public List ChatSessions { get; set; } = new(); diff --git a/src/Server/StellarChat.Server.Api/Features/Assistants/BrowseAssistants/BrowseAssistants.cs b/src/Server/StellarChat.Server.Api/Features/Assistants/BrowseAssistants/BrowseAssistants.cs new file mode 100644 index 0000000..7c59e8f --- /dev/null +++ b/src/Server/StellarChat.Server.Api/Features/Assistants/BrowseAssistants/BrowseAssistants.cs @@ -0,0 +1,3 @@ +namespace StellarChat.Server.Api.Features.Assistants.BrowseAssistants; + +internal sealed class BrowseAssistants : PagedQuery { } diff --git a/src/Shared/StellarChat.Shared.Contracts/Assistants/AssistantResponse.cs b/src/Shared/StellarChat.Shared.Contracts/Assistants/AssistantResponse.cs new file mode 100644 index 0000000..7e67b95 --- /dev/null +++ b/src/Shared/StellarChat.Shared.Contracts/Assistants/AssistantResponse.cs @@ -0,0 +1,13 @@ +namespace StellarChat.Shared.Contracts.Assistants; + +public record AssistantResponse( + Guid Id, + string Name, + string Metaprompt, + string Description, + string AvatarUrl, + string DefaultModel, + string DefaultVoice, + bool IsDefault, + DateTimeOffset CreatedAt, + DateTimeOffset UpdatedAt);