创建状态栏面板。 @param config 配置(暂未使用) @param llmClient LLM 客户端
(com.tcode.config.TCodeConfig config, LlmClient llmClient)
| 33 | * @param llmClient LLM 客户端 |
| 34 | */ |
| 35 | public StatusPane(com.tcode.config.TCodeConfig config, LlmClient llmClient) { |
| 36 | super(); |
| 37 | this.llmClient = llmClient; |
| 38 | |
| 39 | setLayoutManager(new LinearLayout(Direction.VERTICAL)); |
| 40 | |
| 41 | // 模型信息 |
| 42 | this.modelLabel = new Label("🤖 " + (llmClient != null ? llmClient.getModelName() : "?")); |
| 43 | this.tokenLabel = new Label("💡 --"); |
| 44 | this.modeLabel = new Label("🔄 ReAct"); |
| 45 | this.timeLabel = new Label("⏱ --"); |
| 46 | |
| 47 | addComponent(modelLabel); |
| 48 | addComponent(tokenLabel); |
| 49 | addComponent(modeLabel); |
| 50 | addComponent(timeLabel); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * 更新 Token 使用量。 |
nothing calls this directly
no test coverage detected