Manage AI Agents in Wacht
fetchAgents(options?: ListAgentsOptions)
options
(optional): An object containing pagination and filtering options.
page
(number): The page number to retrieve.per_page
(number): The number of items per page.is_active
(boolean): Filter by active status.search
(string): Search term for agents.Promise<AgentListResponse>
: A promise that resolves to a list of AI agents and pagination information.
fetchAgent(agentId: string)
agentId
(string): The unique identifier of the AI agent.Promise<AiAgent>
: A promise that resolves to the AI agent object.
createAgent(request: CreateAiAgentRequest)
request
(CreateAiAgentRequest): The request body containing the details of the new AI agent.Promise<AiAgent>
: A promise that resolves to the newly created AI agent object.
updateAgent(agentId: string, request: UpdateAiAgentRequest)
agentId
(string): The unique identifier of the AI agent to update.request
(UpdateAiAgentRequest): The request body containing the updated details of the AI agent.Promise<AiAgent>
: A promise that resolves to the updated AI agent object.
deleteAgent(agentId: string)
agentId
(string): The unique identifier of the AI agent to delete.Promise<void>
: A promise that resolves when the agent is successfully deleted.