MCPcopy Create free account
hub / github.com/echoVic/blade-code / getComponent

Method getComponent

src/agent/Agent.ts:272–274  ·  view source on GitHub ↗

* 获取组件

(id: string)

Source from the content-addressed store, hash-verified

270 * 获取组件
271 */
272 public getComponent<T extends BaseComponent>(id: string): T | undefined {
273 return this.componentManager.getComponent<T>(id);
274 }
275
276 /**
277 * 移除组件

Callers 5

analyzeToolNeedMethod · 0.95
callToolSmartMethod · 0.95
getToolComponentMethod · 0.95
getContextComponentMethod · 0.95
getMCPComponentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected