We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4669a8 commit 4d872c9Copy full SHA for 4d872c9
packages/core/src/runtime.ts
@@ -164,8 +164,7 @@ export class AgentRuntime implements IAgentRuntime {
164
return serviceInstance as T;
165
}
166
registerService(service: Service): void {
167
- console.log("Register service")
168
- const serviceType = (service.constructor as typeof Service).serviceType;
+ const serviceType = (service as typeof Service).serviceType;
169
if (this.services.has(serviceType)) {
170
console.warn(`Service ${serviceType} is already registered. Skipping registration.`);
171
return;
0 commit comments