mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 12:51:26 +08:00
Revert "feat(types): add DeleteAgentResponse type and update AgentService"
This reverts commit 219844cb74.
This commit is contained in:
parent
f9b49ffde6
commit
70a68bef27
@ -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> {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user