mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-12 00:49:14 +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,
|
AgentEntity,
|
||||||
CreateAgentRequest,
|
CreateAgentRequest,
|
||||||
CreateAgentResponse,
|
CreateAgentResponse,
|
||||||
DeleteAgentResponse,
|
|
||||||
GetAgentResponse,
|
GetAgentResponse,
|
||||||
ListAgentsResponse,
|
ListAgentsResponse,
|
||||||
ListOptions,
|
ListOptions,
|
||||||
@ -144,7 +143,7 @@ export class AgentService extends BaseService {
|
|||||||
return await this.getAgent(id)
|
return await this.getAgent(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
async deleteAgent(id: string): Promise<DeleteAgentResponse> {
|
async deleteAgent(id: string): Promise<boolean> {
|
||||||
this.ensureInitialized()
|
this.ensureInitialized()
|
||||||
|
|
||||||
const result = await this.database.delete(agentsTable).where(eq(agentsTable.id, id))
|
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 UpdateAgentResponse = GetAgentResponse
|
||||||
|
|
||||||
export type DeleteAgentResponse = boolean
|
|
||||||
|
|
||||||
export type CreateSessionRequest = AgentBase
|
export type CreateSessionRequest = AgentBase
|
||||||
|
|
||||||
export interface UpdateSessionRequest extends Partial<AgentBase> {}
|
export interface UpdateSessionRequest extends Partial<AgentBase> {}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user