Skip to content

Commit 4d872c9

Browse files
committed
services registering correctly
1 parent c4669a8 commit 4d872c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/runtime.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ export class AgentRuntime implements IAgentRuntime {
164164
return serviceInstance as T;
165165
}
166166
registerService(service: Service): void {
167-
console.log("Register service")
168-
const serviceType = (service.constructor as typeof Service).serviceType;
167+
const serviceType = (service as typeof Service).serviceType;
169168
if (this.services.has(serviceType)) {
170169
console.warn(`Service ${serviceType} is already registered. Skipping registration.`);
171170
return;

0 commit comments

Comments
 (0)