feat(agent): enforce model readiness and polish selector UX
Block chat when agents lack an explicit chat or rerank model, guide users through the selector and editor with field highlight, and align session QA checks with the same readiness rules on backend and frontend.
This commit is contained in:
@@ -48,15 +48,16 @@ func (m *captureChatModel) GetModelName() string { return "capture" }
|
||||
func (m *captureChatModel) GetModelID() string { return "capture" }
|
||||
|
||||
type stubModelService struct {
|
||||
chatModel chat.Chat
|
||||
chatModel chat.Chat
|
||||
modelsByID map[string]*types.Model
|
||||
}
|
||||
|
||||
func (s *stubModelService) CreateModel(context.Context, *types.Model) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *stubModelService) GetModelByID(context.Context, string) (*types.Model, error) {
|
||||
return nil, nil
|
||||
func (s *stubModelService) GetModelByID(_ context.Context, id string) (*types.Model, error) {
|
||||
return s.modelsByID[id], nil
|
||||
}
|
||||
|
||||
func (s *stubModelService) ListModels(context.Context) ([]*types.Model, error) {
|
||||
|
||||
Reference in New Issue
Block a user