-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code(Shared::Contract): Add shared contract for AssistantResponse
- Loading branch information
1 parent
7731a66
commit dd49c24
Showing
5 changed files
with
52 additions
and
11 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
16 changes: 16 additions & 0 deletions
16
src/Client/StellarChat.Client.Web/Components/AgentsDrawer.razor
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,16 @@ | ||
<MudDrawer @bind-Open="IsAgentsDrawerOpen" Width="600px" Height="100%" Anchor="Anchor.Start" Elevation="1" Variant="@DrawerVariant.Temporary"> | ||
<MudDrawerHeader> | ||
<MudText Typo="Typo.h6">My App</MudText> | ||
</MudDrawerHeader> | ||
<MudNavMenu> | ||
<MudNavLink Match="NavLinkMatch.All">Store</MudNavLink> | ||
<MudNavLink Match="NavLinkMatch.All">Library</MudNavLink> | ||
<MudNavLink Match="NavLinkMatch.All">Community</MudNavLink> | ||
</MudNavMenu> | ||
</MudDrawer> | ||
|
||
@code | ||
{ | ||
[Parameter] | ||
public bool IsAgentsDrawerOpen { get; set; } | ||
} |
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
3 changes: 3 additions & 0 deletions
3
src/Server/StellarChat.Server.Api/Features/Assistants/BrowseAssistants/BrowseAssistants.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,3 @@ | ||
namespace StellarChat.Server.Api.Features.Assistants.BrowseAssistants; | ||
|
||
internal sealed class BrowseAssistants : PagedQuery<AssistantResponse> { } | ||
Check failure on line 3 in src/Server/StellarChat.Server.Api/Features/Assistants/BrowseAssistants/BrowseAssistants.cs GitHub Actions / build
Check failure on line 3 in src/Server/StellarChat.Server.Api/Features/Assistants/BrowseAssistants/BrowseAssistants.cs GitHub Actions / build
|
13 changes: 13 additions & 0 deletions
13
src/Shared/StellarChat.Shared.Contracts/Assistants/AssistantResponse.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,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); |