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

Method getComponent

src/agent/ComponentManager.ts:145–147  ·  view source on GitHub ↗

* 获取组件

(id: string)

Source from the content-addressed store, hash-verified

143 * 获取组件
144 */
145 public getComponent<T extends BaseComponent>(id: string): T | undefined {
146 return this.components.get(id) as T;
147 }
148
149 /**
150 * 检查组件是否存在

Callers 1

Calls 1

getMethod · 0.80

Tested by

no test coverage detected