1.11.0 • Published 12 months ago

fetchai-sdk v1.11.0

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

FetchAI SDK

FetchAI SDK is a JavaScript/TypeScript library for interacting with the AgentVerse API. It allows you to create, manage, and interact with AI agents.

Installation

To install the FetchAI SDK, use npm:

npm install fetchai-sdk

Usage

Importing the SDK

import FetchAI from "fetchai-sdk";

Authenticating with an API Token

To use the FetchAI SDK, you need to authenticate with an API token. You can obtain this token from the AgentVerse platform.

const { fetchAI } = new FetchAI("your-api-token");

Creating an Agent

Here is an example of how to create a new agent:

async function createAgent() {
  try {
    const agent = await fetchAI.createAgent("MyNewAgent");
    console.log("Agent created:", agent);
  } catch (error) {
    console.error("Error creating agent:", error);
  }
}
createAgent();

Sample Response

The response from creating an agent will look like this:

{
  "name": "MyNewAgent",
  "address": "agent-address",
  "running": false,
  "compiled": true,
  "revision": 1,
  "code_digest": "digest-string",
  "wallet_address": "wallet-address"
}

API Reference

For detailed API reference, please refer to the documentation.

License

This project is licensed under the ISC License - see the LICENSE file for details.

1.9.0

12 months ago

1.11.0

12 months ago

1.10.0

12 months ago

1.8.0

12 months ago

1.7.0

12 months ago

1.6.2

12 months ago

1.6.1

12 months ago

1.6.0

12 months ago

1.5.5

12 months ago

1.5.4

12 months ago

1.5.3

12 months ago

1.5.2

12 months ago

1.5.1

12 months ago

1.5.0

12 months ago

1.4.7

12 months ago

1.4.6

12 months ago

1.4.5

12 months ago

1.4.2

12 months ago

1.4.1

12 months ago

1.4.0

12 months ago

1.3.4

12 months ago

1.3.3

12 months ago

1.3.2

12 months ago

1.3.1

12 months ago

1.3.0

12 months ago

1.2.0

12 months ago

1.1.0

12 months ago

1.0.0

12 months ago