/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { agentsCreateAgent } from "../funcs/agentsCreateAgent.js"; import { agentsDeleteAgent } from "../funcs/agentsDeleteAgent.js"; import { agentsGetAgent } from "../funcs/agentsGetAgent.js"; import { agentsListAgents } from "../funcs/agentsListAgents.js"; import { agentsUpdateAgent } from "../funcs/agentsUpdateAgent.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Agents extends ClientSDK { /** * List agents */ async listAgents( request: operations.ListAgentsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(agentsListAgents( this, request, options, )); } /** * Create an agent */ async createAgent( request: operations.CreateAgentRequest, options?: RequestOptions, ): Promise { return unwrapAsync(agentsCreateAgent( this, request, options, )); } /** * Retrieve an agent */ async getAgent( request: operations.GetAgentRequest, options?: RequestOptions, ): Promise { return unwrapAsync(agentsGetAgent( this, request, options, )); } /** * Update an agent */ async updateAgent( request: operations.UpdateAgentRequest, options?: RequestOptions, ): Promise { return unwrapAsync(agentsUpdateAgent( this, request, options, )); } /** * Delete an agent */ async deleteAgent( request: operations.DeleteAgentRequest, options?: RequestOptions, ): Promise { return unwrapAsync(agentsDeleteAgent( this, request, options, )); } }