-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
38 lines (38 loc) · 2.88 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<Window x:Class="SQLMultiAgent.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SQLMultiAgent"
mc:Ignorable="d"
Title="SQL Multiagent" Height="450" Width="800" WindowState="Maximized" Background="#FFF6F6F6">
<Grid>
<!-- A 2-panel layout which is split as 40% left pane, 60% right pane.
In the left pane we have a TextBlock that says "Question:", a TextBox called QueryBox under it for the user to type in a question,
and a button at the bottom that says "Ask!" The QueryBox resizes with the window, while the TextBlock and Button stay the same size.
In the right pane we have a TextBlock that says "Answer:" and a RichTextBox called ResponseBox for the answer.
ResponseBox resizes with the window.-->
<Grid.ColumnDefinitions>
<ColumnDefinition Width="4*"/>
<ColumnDefinition Width="6*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="Question:" Grid.Column="0" Grid.Row="0" Margin="10,10,10,5" FontFamily="Arial" FontSize="16" FontWeight="Bold"/>
<TextBox x:Name="QueryBox" Text="{Binding question}" KeyDown="QuestionBox_KeyDown" Grid.Column="0" Grid.Row="1" Margin="10" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" TextWrapping="Wrap" TextBlock.FontFamily="Arial" TextBlock.FontSize="16"/>
<TextBlock Text="Agent Type:" Grid.Column="0" Grid.Row="2" Margin="10,5,10,5" FontFamily="Arial" FontSize="16" FontWeight="Bold"/>
<ComboBox Name="AgentType" Grid.Column="0" Grid.Row="3" Margin="10" SelectedIndex="0" FontSize="16">
<ComboBoxItem x:Name="SingleAgent">Single LLM Call (GPT-4o)</ComboBoxItem>
<ComboBoxItem x:Name="SingleAgentWithFunctions">GPT-4o with Assistant Agent</ComboBoxItem>
<ComboBoxItem x:Name="Multi_Agent">Multi-Agent</ComboBoxItem>
</ComboBox>
<Button Content="Ask!" Grid.Column="0" Grid.Row="4" Margin="10" Click="AskButton_Click" FontSize="16" FontWeight="Bold" IsDefault="True"/>
<TextBlock Text="Answer:" Grid.Column="1" Grid.Row="0" Margin="10,10,10,5" FontFamily="Arial" FontSize="16" FontWeight="Bold"/>
<RichTextBox x:Name="ResponseBox" Grid.Column="1" Grid.Row="1" Margin="10" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" AcceptsReturn="True" Grid.RowSpan="7" TextBlock.FontFamily="Arial" TextBlock.FontSize="16"/>
</Grid>
</Window>