调整Agent助手为左右等分布局并让对话独占右侧
右侧聊天面板铺满页面高度并固定输入区,左侧视频设置、回测结果和步骤草稿独立滚动。步骤卡片与模型参数调整为适合半宽区域的排列。 验证:隔离构建及VideoFlowTest.Smoke通过,已检查1040×900渲染预览与左右等宽、右侧全高布局。
This commit is contained in:
parent
65c011490f
commit
69650e076f
@ -468,7 +468,9 @@
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="Agent助手">
|
||||
<Grid Margin="10" RowDefinitions="Auto,Auto,Auto,*">
|
||||
<Grid x:Name="AgentLayoutGrid" Margin="10" ColumnDefinitions="*,12,*">
|
||||
<ScrollViewer x:Name="AgentLeftPane" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
|
||||
<Grid RowDefinitions="Auto,Auto,Auto,Auto">
|
||||
<StackPanel Spacing="6" IsEnabled="{Binding AgentIsIdle}">
|
||||
<Grid ColumnDefinitions="*,Auto">
|
||||
<TextBox x:Name="AgentVideoPathBox" Text="{Binding AgentVideoPath, Mode=TwoWay}" PlaceholderText="标准视频路径" />
|
||||
@ -491,17 +493,17 @@
|
||||
<TextBox Grid.Column="1" Text="{Binding AgentApiKey, Mode=TwoWay}" PasswordChar="●" />
|
||||
</Grid>
|
||||
<Expander Header="参数">
|
||||
<Grid ColumnDefinitions="80,*,80,*,80,*" RowDefinitions="Auto,Auto">
|
||||
<Grid ColumnDefinitions="80,*,80,*" RowDefinitions="Auto,Auto,Auto">
|
||||
<TextBlock Text="上下文长度" VerticalAlignment="Center" />
|
||||
<NumericUpDown Grid.Column="1" Value="{Binding AgentContextLength, Mode=TwoWay}" Minimum="2048" Maximum="2097152" Increment="1024" />
|
||||
<TextBlock Grid.Column="2" Text="最大输出" VerticalAlignment="Center" Margin="8,0,0,0" />
|
||||
<NumericUpDown Grid.Column="3" Value="{Binding AgentMaxTokens, Mode=TwoWay}" Minimum="256" Maximum="2097151" Increment="256" />
|
||||
<TextBlock Grid.Column="4" Text="请求超时" VerticalAlignment="Center" Margin="8,0,0,0" />
|
||||
<NumericUpDown Grid.Column="5" Value="{Binding AgentTimeoutSeconds, Mode=TwoWay}" Minimum="10" Maximum="1800" Increment="10" />
|
||||
<TextBlock Grid.Row="1" Grid.Column="2" Text="请求超时" VerticalAlignment="Center" Margin="8,0,0,0" />
|
||||
<NumericUpDown Grid.Row="1" Grid.Column="3" Value="{Binding AgentTimeoutSeconds, Mode=TwoWay}" Minimum="10" Maximum="1800" Increment="10" />
|
||||
<TextBlock Grid.Row="1" Text="温度" VerticalAlignment="Center" />
|
||||
<NumericUpDown Grid.Row="1" Grid.Column="1" Value="{Binding AgentTemperature, Mode=TwoWay}" Minimum="0" Maximum="2" Increment="0.1" FormatString="0.0" />
|
||||
<TextBlock Grid.Row="1" Grid.Column="2" Text="Top P" VerticalAlignment="Center" Margin="8,0,0,0" />
|
||||
<NumericUpDown Grid.Row="1" Grid.Column="3" Value="{Binding AgentTopP, Mode=TwoWay}" Minimum="0.01" Maximum="1" Increment="0.05" FormatString="0.00" />
|
||||
<TextBlock Grid.Row="2" Text="Top P" VerticalAlignment="Center" Margin="8,0,0,0" />
|
||||
<NumericUpDown Grid.Row="2" Grid.Column="1" Value="{Binding AgentTopP, Mode=TwoWay}" Minimum="0.01" Maximum="1" Increment="0.05" FormatString="0.00" />
|
||||
</Grid>
|
||||
</Expander>
|
||||
</StackPanel>
|
||||
@ -516,7 +518,9 @@
|
||||
<Button Content="取消分析" Command="{Binding CancelAgentCommand}" Margin="8,0,0,0" />
|
||||
<Button Content="{Binding AgentApplyLabel}" Command="{Binding ApplyAgentDraftCommand}" Margin="8,0,0,0" />
|
||||
</WrapPanel>
|
||||
<CheckBox Content="生成后自动用标准视频回测并修订(最多3轮)" IsChecked="{Binding AgentAutoVerify, Mode=TwoWay}" IsEnabled="{Binding AgentIsIdle}" />
|
||||
<CheckBox IsChecked="{Binding AgentAutoVerify, Mode=TwoWay}" IsEnabled="{Binding AgentIsIdle}">
|
||||
<TextBlock Text="生成后自动用标准视频回测并修订(最多3轮)" TextWrapping="Wrap" />
|
||||
</CheckBox>
|
||||
<ProgressBar IsIndeterminate="True" IsVisible="{Binding IsAgentBusy}" Height="4" />
|
||||
<TextBlock x:Name="AgentStatusText" Text="{Binding AgentStatus}" TextWrapping="Wrap" Foreground="{StaticResource Accent}" />
|
||||
<Expander Header="标准视频回测与区域校正" IsExpanded="True">
|
||||
@ -528,19 +532,17 @@
|
||||
</ScrollViewer>
|
||||
</Expander>
|
||||
</StackPanel>
|
||||
<Grid Grid.Row="3" ColumnDefinitions="3*,12,2*">
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
|
||||
<ItemsControl ItemsSource="{Binding AgentDraftSteps}" IsEnabled="{Binding AgentCanEditDraft}">
|
||||
<ItemsControl Grid.Row="3" ItemsSource="{Binding AgentDraftSteps}" IsEnabled="{Binding AgentCanEditDraft}">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border Classes="panel" Padding="10" Margin="0,0,0,8">
|
||||
<Grid ColumnDefinitions="180,*">
|
||||
<Grid RowDefinitions="Auto,Auto">
|
||||
<StackPanel Spacing="6">
|
||||
<TextBlock Text="{Binding Timeline}" FontWeight="SemiBold" />
|
||||
<Image Source="{Binding EvidenceImage}" Height="110" Stretch="Uniform" />
|
||||
<TextBlock Text="{Binding EvidenceLabel}" FontSize="12" Foreground="{StaticResource FgDim}" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1" Spacing="6" Margin="12,0,0,0">
|
||||
<StackPanel Grid.Row="1" Spacing="6" Margin="0,10,0,0">
|
||||
<TextBox Text="{Binding Name, Mode=TwoWay}" PlaceholderText="步骤名" />
|
||||
<TextBox Text="{Binding Description, Mode=TwoWay}" AcceptsReturn="True" TextWrapping="Wrap" MinHeight="60" PlaceholderText="步骤说明" />
|
||||
<Grid ColumnDefinitions="70,*">
|
||||
@ -558,8 +560,9 @@
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
<Border Grid.Column="2" Classes="panel" Padding="10">
|
||||
<Border x:Name="AgentChatPanel" Grid.Column="2" Classes="panel" Padding="10">
|
||||
<Grid RowDefinitions="Auto,*,Auto,Auto">
|
||||
<Grid ColumnDefinitions="*,Auto">
|
||||
<TextBlock Text="对话" VerticalAlignment="Center" />
|
||||
@ -592,7 +595,6 @@
|
||||
<Button Grid.Row="3" Content="发送" Command="{Binding SendAgentChatCommand}" HorizontalAlignment="Right" Margin="0,8,0,0" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user