File tree 1 file changed +3
-3
lines changed
packages/client-direct/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ Response format should be formatted in a JSON block like this:
111
111
112
112
export class DirectClient {
113
113
public app : express . Application ;
114
- private agents : Map < string , AgentRuntime > ; // container management
114
+ private agents : Map < string , IAgentRuntime > ; // container management
115
115
private server : any ; // Store server instance
116
116
public startAgent : Function ; // Store startAgent functor
117
117
public loadCharacterTryPath : Function ; // Store loadCharacterTryPath functor
@@ -979,13 +979,13 @@ export class DirectClient {
979
979
}
980
980
981
981
// agent/src/index.ts:startAgent calls this
982
- public registerAgent ( runtime : AgentRuntime ) {
982
+ public registerAgent ( runtime : IAgentRuntime ) {
983
983
// register any plugin endpoints?
984
984
// but once and only once
985
985
this . agents . set ( runtime . agentId , runtime ) ;
986
986
}
987
987
988
- public unregisterAgent ( runtime : AgentRuntime ) {
988
+ public unregisterAgent ( runtime : IAgentRuntime ) {
989
989
this . agents . delete ( runtime . agentId ) ;
990
990
}
991
991
You can’t perform that action at this time.
0 commit comments