import z from "zod"; import { ServiceClient } from "../../service-client"; import { CreateAgentSchema, GetAgentSchema, ListModelsSchema } from "./schema"; import { Agent, AIModel } from "./types"; export class AgentService extends ServiceClient { protected getServiceName(): string { return 'com.appconda.service.agent'; } public async CreateAgent(payload: z.infer): Promise { return await this.actionCall('CreateAgent', payload); } public async GetAgent(payload: z.infer): Promise { return await this.actionCall('GetAgent', payload); } public async ListAgents(): Promise { return await this.actionCall('ListAgents', {}); } public async ListModelProviders(): Promise { return await this.actionCall('ListModelProviders', {}); } public async ListModels(payload: z.infer): Promise { return await this.actionCall('ListModels', payload); } }