MCPcopy Create free account
hub / github.com/OperationT00/T-Code / StatusPane

Method StatusPane

src/main/java/com/tcode/tui/pane/StatusPane.java:35–51  ·  view source on GitHub ↗

创建状态栏面板。 @param config 配置(暂未使用) @param llmClient LLM 客户端

(com.tcode.config.TCodeConfig config, LlmClient llmClient)

Source from the content-addressed store, hash-verified

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 使用量。

Callers

nothing calls this directly

Calls 1

getModelNameMethod · 0.65

Tested by

no test coverage detected