[FEATURE] Support a namespace default ModelConfig

オープン
#3,553 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
54/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
frontend

調査の方向性

Start by tracing AgentTemplate creation and namespace changes in the UI, then inspect the UI model adapter that maps ModelConfig resource metadata; the issue says it must preserve the annotation. Check the chart configuration that generates the default ModelConfig and its existing providers.annotations support. Done means a single marked model is preselected, multiple or no marked models require a choice, explicit selections are preserved, and the chart annotation can be opted out.

索引モデルが issue の本文から書いたものです。

説明

📋 Prerequisites
📝 Feature Summary

Let operators mark a ModelConfig as the namespace default and preselect it when creating an AgentTemplate.

❓ Problem Statement / Motivation

The chart creates default-model-config, but the UI does not preselect it. Installations managing their own ModelConfigs also have no standard way to indicate which model users should start with.

💡 Proposed Solution
  • Recognize kagent.dev/is-default-model-config: "true" on ModelConfigs.
  • On template creation or namespace change, preselect the single marked model in that namespace. With none or multiple marked, require an explicit choice.
  • Preserve explicit user selections. Shared models remain manually selectable.
  • Mark the chart-generated ModelConfig by default, with an opt-out.

This would initially cover UI preselection. Defaulting omitted references in the CLI or controller could be considered separately.

🔄 Alternatives Considered

Keep relying on the fixed name, which does not cover custom ModelConfigs, or introduce a spec field, which requires a CRD change.

🎯 Affected Service(s)

UI Service

📚 Additional Context

#2200 added providers.annotations for the chart-generated ModelConfig. The backend already returns resource metadata; the UI model adapter would need to preserve the annotation.

主要言語
Go
スター
4.5k
フォーク
937
平均マージ
1日 10時間
マージ済み PR(30日)
150

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

kagent-dev/kagent のほかの issue

kagent-dev/kagent の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。