Agents

Agents are AI-driven entities you can create, train, and deploy. They analyze data, execute tasks, and adapt in real time.

List all agents

get

Retrieve a paginated list of all AI agents, with optional filters for limit and page.

Query parameters
limitintegerOptional

Number of agents to return per page

Default: 20
pageintegerOptional

Page number

Default: 1
Responses
chevron-right
200

A list of agents retrieved successfully.

application/json
get
/agents

Create an agent

post

Create a new AI agent to be trained and deployed on the Aver platform.

Body
namestringRequired
descriptionstringOptional
functionsstringOptional
Responses
post
/agents

Fetch agent by ID

get

Retrieve details of a specific agent by its unique ID.

Path parameters
idstringRequired

The unique identifier of the agent.

Responses
chevron-right
200

Agent details retrieved successfully.

application/json
get
/agents/{id}

Update an agent

patch

Update the metadata of an existing agent. You can edit the name, description, or associated functions.

Path parameters
idstringRequired

The unique identifier of the agent.

Body
namestringOptional
descriptionstringOptional
functionsstringOptional
Responses
chevron-right
200

Agent updated successfully.

application/json
patch
/agents/{id}

Delete an agent

delete

Permanently remove an agent from the platform by ID.

Path parameters
idstringRequired

The unique identifier of the agent.

Responses
delete
/agents/{id}

No content

Train an agent

post

Initiate the training process for a specific agent using provided data or parameters.

Path parameters
idstringRequired

The unique identifier of the agent to train.

Body
trainingDatastringOptional

Location or references to the training dataset.

hyperparametersobjectOptional

Hyperparameter configurations for the training process.

Responses
post
/agents/{id}/train

Get training status

get

Retrieve the current status (in-progress, completed, failed) of an agent's training.

Path parameters
idstringRequired

The unique identifier of the agent.

Responses
chevron-right
200

Training status retrieved successfully.

application/json
get
/agents/{id}/train/status

Deploy an agent

post

Deploy a trained agent to the blockchain or a supported environment for live usage.

Path parameters
idstringRequired

The unique identifier of the agent.

Responses
post
/agents/{id}/deploy

Retrieve agent logs

get

Fetch the logs generated by a deployed agent, including any blockchain interactions or function calls.

Path parameters
idstringRequired

The unique identifier of the agent.

Query parameters
limitintegerOptional

Limit the number of log entries.

Default: 50
Responses
chevron-right
200

Logs retrieved successfully.

application/json
get
/agents/{id}/logs

Execute a function on the agent

post

Run one of the agent’s associated functions with your specified input data.

Path parameters
idstringRequired

The unique identifier of the agent.

Body
functionNamestringRequired

Name of the function to execute.

inputDataobjectOptional

Any data required by the function.

Responses
chevron-right
200

Function executed successfully.

application/json
post
/agents/{id}/execute

Last updated