Lists AI agents based on the provided parameters.
This operation is performed by calling function getAiAgents.
See the endpoint docs at API Reference.
await client.aiStudio.getAiAgents();
GetAiAgentsQueryParams
GetAiAgentsHeadersInput
undefined | CancellationToken
This function returns a value of type AiMultipleAgentResponse.
A successful response including the agents list.
Creates an AI agent. At least one of the following capabilities must be provided: ask, text_gen, extract.
This operation is performed by calling function createAiAgent.
See the endpoint docs at API Reference.
await client.aiStudio.createAiAgent({
name: agentName,
accessState: 'enabled',
ask: new AiStudioAgentAsk({ accessState: 'enabled', description: 'desc1' }),
} satisfies CreateAiAgentInput);
CreateAiAgentInput
CreateAiAgentOptionalsInputThis function returns a value of type AiSingleAgentResponseFull.
Definition of created AI agent.
Updates an AI agent.
This operation is performed by calling function updateAiAgentById.
See the endpoint docs at API Reference.
await client.aiStudio.updateAiAgentById(createdAgent.id, {
name: agentName,
accessState: 'enabled',
ask: new AiStudioAgentAsk({ accessState: 'disabled', description: 'desc2' }),
} satisfies CreateAiAgentInput);
string
CreateAiAgentInput
UpdateAiAgentByIdOptionalsInputThis function returns a value of type AiSingleAgentResponseFull.
Definition of created AI agent.
Gets an AI Agent using the agent_id parameter.
This operation is performed by calling function getAiAgentById.
See the endpoint docs at API Reference.
await client.aiStudio.getAiAgentById(createdAgent.id, {
queryParams: { fields: ['ask'] } satisfies GetAiAgentByIdQueryParams,
} satisfies GetAiAgentByIdOptionalsInput);
string
GetAiAgentByIdOptionalsInputThis function returns a value of type AiSingleAgentResponseFull.
A successful response including the agent.
Deletes an AI agent using the provided parameters.
This operation is performed by calling function deleteAiAgentById.
See the endpoint docs at API Reference.
await client.aiStudio.deleteAiAgentById(createdAgent.id);
string
DeleteAiAgentByIdOptionalsInputThis function returns a value of type undefined.
A successful response with no content.