diff --git a/src/renderer/src/types/agent.ts b/src/renderer/src/types/agent.ts index 338856ffcd..de3fd9815f 100644 --- a/src/renderer/src/types/agent.ts +++ b/src/renderer/src/types/agent.ts @@ -120,9 +120,11 @@ export const CreateAgentResponseSchema = AgentEntitySchema export interface UpdateAgentRequest extends Partial {} -export interface GetAgentResponse extends AgentEntity { - built_in_tools?: Tool[] // Built-in tools available to the agent -} +export const GetAgentResponseSchema = AgentEntitySchema.extend({ + built_in_tools: z.array(ToolSchema).optional() // Built-in tools available to the agent +}) + +export type GetAgentResponse = z.infer export type CreateSessionRequest = AgentBase