Revert "feat(types): add DeleteAgentResponse type and update AgentService"
This reverts commit 219844cb74.
This commit is contained in:
@@ -5,7 +5,6 @@ import type {
|
||||
AgentEntity,
|
||||
CreateAgentRequest,
|
||||
CreateAgentResponse,
|
||||
DeleteAgentResponse,
|
||||
GetAgentResponse,
|
||||
ListAgentsResponse,
|
||||
ListOptions,
|
||||
@@ -144,7 +143,7 @@ export class AgentService extends BaseService {
|
||||
return await this.getAgent(id)
|
||||
}
|
||||
|
||||
async deleteAgent(id: string): Promise<DeleteAgentResponse> {
|
||||
async deleteAgent(id: string): Promise<boolean> {
|
||||
this.ensureInitialized()
|
||||
|
||||
const result = await this.database.delete(agentsTable).where(eq(agentsTable.id, id))
|
||||
|
||||
@@ -142,8 +142,6 @@ export const UpdateAgentResponseSchema = GetAgentResponseSchema
|
||||
|
||||
export type UpdateAgentResponse = GetAgentResponse
|
||||
|
||||
export type DeleteAgentResponse = boolean
|
||||
|
||||
export type CreateSessionRequest = AgentBase
|
||||
|
||||
export interface UpdateSessionRequest extends Partial<AgentBase> {}
|
||||
|
||||
Reference in New Issue
Block a user