diff --git a/docs/environments/08-ai-hub.mdx b/docs/environments/15-ai-hub.mdx similarity index 89% rename from docs/environments/08-ai-hub.mdx rename to docs/environments/15-ai-hub.mdx index cb1c111f..00b91464 100644 --- a/docs/environments/08-ai-hub.mdx +++ b/docs/environments/15-ai-hub.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 8 +sidebar_position: 15 description: Nevermined AI Hub --- @@ -22,6 +22,10 @@ The AI Hub provides: * Automatic accounting for the usage of the Agent. Subscribers sending Tasks to the Agent will be charged in credits for their Tasks. When they use all the credits they have available the access will be restricted, so if they want to continue using the Agent they must topup. * Orchestration of tasks. The backend allow AI builders to define their workflow of Steps and receive the Steps to process in the right order. When all the Steps resolving a Task are **Completed**, the backend will complete the whole Task successfully. If any of the Steps fails, the backend will complete the whole Task as **Failed**. +:::tip +The AI Hub is under active development, so new exciting features will be available soon +::: + ## How an AI Builder can use the AI Hub? It's very simple. An AI Builder just needs to: @@ -29,4 +33,4 @@ It's very simple. An AI Builder just needs to: 1. Get their own [Nevermined API Key](../tutorials/integration/nvm-api-keys) 2. Install the [Payments library](../libraries/) in their project 3. Integrate with the AI Hub to start [processing AI Tasks](../libraries/process-tasks) - +4. [Register the new AI Agent](../tutorials/builders/register-agent) into a Nevermined deployment diff --git a/docs/libraries/02-getting-started.mdx b/docs/libraries/02-getting-started.mdx index 249189eb..7080cd57 100644 --- a/docs/libraries/02-getting-started.mdx +++ b/docs/libraries/02-getting-started.mdx @@ -67,7 +67,8 @@ You need to keep your API Key secure and never share it with anyone. ```typescript - // @see https://docs.nevermined.app/docs/tutorials/integration/nvm-api-keys + // To get your own Nevermined API Key, follow the instructions here: + // https://docs.nevermined.app/docs/tutorials/integration/nvm-api-keys const nvmApiKey = 'eyJhbGciOiJFUzI1NksifQ.ey .....' // If you want to connect to production use 'arbitrum' as environment @@ -81,7 +82,7 @@ You need to keep your API Key secure and never share it with anyone. ```typescript // If you want to connect to production use 'arbitrum' as environment const payments = Payments.getBrowserInstance({ - returnUrl: 'https://mysite.example', + returnUrl: 'https://mysite.example.com', environment: 'testing' }) payments.connect() diff --git a/docs/libraries/10-examples.md b/docs/libraries/10-examples.md index 7405b9f5..98959969 100644 --- a/docs/libraries/10-examples.md +++ b/docs/libraries/10-examples.md @@ -6,3 +6,18 @@ description: Examples # Examples The Payment Libraries allow you to interact with the Nevermined platform to create and manage Payment Plans and AI Agents. + +## AI Agents + +### Youtube Agent (Python) + +The Youtube Summarizer it's a small Python AI Agent with Nevermined Payments Library integrated which receives a Youtube video URL and returns a summary of the transcription of the video. + +The Agent uses LangChain to retrieve the transcription and summarize it via OpenAI integration. + +Here is the [Youtube Summarizer Agent code](https://github.com/nevermined-io/youtube-agent/). + +## Notebooks + +In the [Python Notebook](https://colab.research.google.com/drive/1Pqrfm3P5t8P9DS7Hwp3v72jhRrB2KsP5#scrollTo=dghI-HwVgulp) example, we will show you how to use the Payments Library to create Payment Plans, register AI Agents, and query them. + diff --git a/docs/tutorials/integration/nextjs-react-payments.mdx b/docs/tutorials/integration/nextjs-react-payments.mdx index 5c69c3e3..2e5a4e6a 100644 --- a/docs/tutorials/integration/nextjs-react-payments.mdx +++ b/docs/tutorials/integration/nextjs-react-payments.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 5 +sidebar_position: 8 description: How to integrate the Nevermined Payments library in a react application --- @@ -7,6 +7,10 @@ import PaymentsTutorial from '@site/src/components/payments/tutorial' # Tutorial on how to use the Nevermined Payments Protocol in a React app +:::tip +To have full details about how to use the [Payments Library](../../libraries/), please visit the [documentation section](../../libraries/) +::: + ### Initializing the project For this tutorial we will be using [nextjs](https://nextjs.org/docs/getting-started/installation) diff --git a/docs/tutorials/integration/python-integration.mdx b/docs/tutorials/integration/python-integration.mdx index acbc301f..0ffb4697 100644 --- a/docs/tutorials/integration/python-integration.mdx +++ b/docs/tutorials/integration/python-integration.mdx @@ -7,9 +7,9 @@ description: How to integrate the Nevermined Payments Python library The objective of this library is to make possible the integration of Nevermined payments in the Python code ecosystem. This library provides a set of functions to interact with the Nevermined network, including the ability to register subscriptions and subscribe to web services and get the JWT access token to call them. -:::info - -In a previous tutorial we showed [what is a Nvm Api Key and how to obtain it](nvm-api-keys). +:::tip + +To have full details about how to use the [Payments Library](../../libraries/), please visit the [documentation section](../../libraries/) ::: @@ -23,6 +23,12 @@ pip install payments-py ### Initialize the payments library +:::info + +In a previous tutorial we showed [what is a Nvm Api Key and how to obtain it](nvm-api-keys). + +::: + To initialize the payments library, you need to provide the following parameters: - Nvm Api key: It's a string that identifies the session key of the account abstraction and some extra data as the marketplace auth token. It works similar to a jwt but for blockchain accounts. You can find more in [zeroDev docs](https://docs.zerodev.app/sdk/plugins/session-keys). @@ -30,6 +36,7 @@ To initialize the payments library, you need to provide the following parameters - App id: It's a string that represents the app id. Currently is optional. - Version: It's a string that represents the version of the app. Currently is optional. + ``` from nevermined_payments import Payments