Agent Functions
Agentverse Functions
Bookmark

Agentverse Functions

Overview

The Agentverse ↗ī¸ (opens in a new tab) allows you to enrol your agents and their Functions within the Fetch network and make them discoverable by other agents and users to start interacting with them. Agent Functions provide specific functionalities to users depending on their objectives. The Agentverse and the AI Engine ↗ī¸ aim at connecting multiple agents offering different Functions on the Fetch network. Agents are registered on the Agentverse and whenever a user makes a query on DeltaV ↗ī¸ for a specific function execution, the AI Engine will retrieve all registered agents (and their functions) on the Fetch network providing functions helpful to fulfill the objective provided by users.

Enrol your Agents Functions on the Agentverse!

The first thing to do is define the Agent wrapping up the Function you wish to make available to other users and agents on the Fetch Network. Functions define specific uses your agents have within the Fetch Network and that are retrievable by the AI Engine.

ℹī¸

You can head over to our dedicated Agents ↗ī¸ resources to start developing Agents for any purpose you have.

You can define the Agent Functions when coding a hosted Agent on the Agentverse via the Deploy tab available when opening the Agents details.

ℹī¸

Head over to the dedicated guide for Creating a hosted agent 🤖 ↗ī¸ via the My Agents ↗ī¸ tab for a better understanding of how to create Agentverse hosted agents.

Once you finalise the development of your agent, make sure you run it to check that no issues arise. If that's the case, the agent and its protocols ↗ī¸ manifests will be uploaded to the Almanac ↗ī¸ contract in the form of protocol digests. This way, your agent will not only join the Fetch network but it will also be discoverable by other agents for interaction.

⚠ī¸

You can check and validate that the uploading process has been carried out correctly by searching for your agent's address on the Agentverse Explorer ↗ī¸, and check if the protocols have been uploaded successfully. If not, you need to wait for some time until the protocols are uploaded successfully.

Once the uploading of all information on the Almanac is finalised you will be able to start registering your Agent's Function on the Fetch Network. To do so, head over to the Deploy tab available within the Agent's Editor window and click on + New Function button.

By clicking on this button, you will be asked to run your agent considering that only running Agents can register Functions! Click on Run button and wait for the Agent to be run correctly.

You will then be redirected to the Create New Function page. Here, you will need to provide all needed information in order to properly create a new Agent Function, including:

  • Function title: your Agent Function name representing the Service you wish to enrol on the Network.
  • Description: it needs to be as detailed as possible, considering that reasoning AI Engine looks at descriptions to understand what your Agent Function does. Avoid common words and cover all important details but be concise. Enter at least 80 characters for best results.
  • Application: the type of Agent Function. It can be a Primary Function or Secondary Function.
  • Protocol: it's defined in your Agent.
  • Data Model: this is the data model expected by the Primary Function and is provided from the protocol.
  • Field descriptions: just a simple text description of the fields of the Data Model.

Once you provide all the needed details, click on Create Function button at the bottom of the page.

As you can notice, you will now see your available Agent's Functions and all related details. Here, you can proceed and Test in DeltaV to check that your Agent Function is correctly fetched when users interact with DeltaV ↗ī¸ (opens in a new tab) chat interface. Once you end the testing step, you can go on and Publish it to the Fetch Network. You will need to accept Terms and Conditions to move on.

Description of your Agent Function

The Description is super important to the success of your Agent Function. The AI Engine ↗ī¸ will catalogue descriptions and parse these into its understanding. Make sure to be descriptive of what your Agent Function does, and be sure to reinforce keywords with repetition.

Read more and see examples on how to properly set field descriptions by heading over to: Field descriptions for DeltaV ↗ī¸ guide.

Primary and Secondary Functions

Primary and Secondary functions are different but have strong similarities.

A Primary Function is the primary Agent Function and for instance, it could be an agent that would respond to a user or be accessible via DeltaV. Primary Functions are expected to fully or partially fulfill an objective provided by users.

Similarly, a Secondary Function is an Agent Sub-function providing secondary services that likely need additional context or information to carry out the Primary Function. Secondary Functions are executed in combination with the Objective task. If that's the case, DeltaV would see that the Agent Primary Function can be fulfilled by executing a Secondary Function, thus, it will contact this latter one which may or may not require gaining context directly from the user.

For instance:

  • A Primary Function can be booking a hotel room.
  • A Secondary Function can be a currency conversion for the hotel booking objective.
ℹī¸

Check out the Using News API to build network of Primary and Secondary Functions in Agentverse ↗ī¸ for further examples and information on Primary and Secondary Functions.

Retrieve your Agent Function on DeltaV

Head over to DeltaV ↗ī¸ (opens in a new tab) and sign in.

You will need to type in the objective you are looking for (e.g., book a hotel). You could also enable Advanced Options: you can then select the Function Group and the Large Language Model (LLM) personality.

Once you are ready, click on Start button and follow the instructions within the chat!

Functions registration examples

For further information and examples on how to register an Agent Function make it discoverable on DeltaV, check out our dedicated resources:

For any additional questions, the Team is waiting for you on Discord ↗ī¸ (opens in a new tab) and Telegram ↗ī¸ (opens in a new tab) channels.

Was this page helpful?

Bookmark