@@ -144,20 +144,6 @@ export class AgentTracker {
144
144
return agentId ;
145
145
}
146
146
147
- /**
148
- * @deprecated Use registerAgent instead
149
- */
150
- public registerAgentState ( agentId : string , state : AgentState ) : void {
151
- // Make a copy of state without the agentId to avoid duplication
152
- const { agentId : _ , ...stateWithoutId } = state ;
153
-
154
- // Register with the correct agentId
155
- this . registerAgent ( {
156
- ...stateWithoutId ,
157
- agentId,
158
- } ) ;
159
- }
160
-
161
147
// Update agent status
162
148
public updateAgentStatus (
163
149
agentId : string ,
@@ -196,20 +182,6 @@ export class AgentTracker {
196
182
return this . agentInfos . get ( agentId ) ;
197
183
}
198
184
199
- /**
200
- * @deprecated Use getAgent instead
201
- */
202
- public getAgentInfo ( agentId : string ) : AgentInfo | undefined {
203
- return this . getAgent ( agentId ) ;
204
- }
205
-
206
- /**
207
- * @deprecated Use getAgent instead
208
- */
209
- public getAgentState ( agentId : string ) : AgentState | undefined {
210
- return this . getAgent ( agentId ) ;
211
- }
212
-
213
185
/**
214
186
* Get all agents, optionally filtered by status
215
187
* @param status Optional status to filter by
@@ -225,22 +197,6 @@ export class AgentTracker {
225
197
return agents . filter ( ( agent ) => agent . status === status ) ;
226
198
}
227
199
228
- /**
229
- * Get list of active agents with their descriptions
230
- * @deprecated Use getAgents(AgentStatus.RUNNING) instead
231
- */
232
- public getActiveAgents ( ) : Array < {
233
- agentId : string ;
234
- description : string ;
235
- status : AgentStatus ;
236
- } > {
237
- return this . getAgents ( AgentStatus . RUNNING ) . map ( ( info ) => ( {
238
- agentId : info . agentId ,
239
- description : info . goal ,
240
- status : info . status ,
241
- } ) ) ;
242
- }
243
-
244
200
// Cleanup and terminate agents
245
201
public async cleanup ( ) : Promise < void > {
246
202
const runningAgents = this . getAgents ( AgentStatus . RUNNING ) ;
0 commit comments