# Data Source Provider

#### A brief description of how to develop a data source for an AI service on Future-AI:

*As Future-AI currently supports only shell script, a provider cannot use popular programming languages such as Java to develop their services.*

*When developing the data source script, the job is fairly simple with no input arguments, as the providers only need to call their API using a cURL request. However, the output of a data source must be a string, not an object. A simple data source is given as follows:*

```
#!/bin/bash
curl -s -X GET "https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD" -H "accept: application/json" | jq -r ".USD"
```

*The "jq" command is used to parse the JSON response of the request to collect only a string.*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://future-ai-1.gitbook.io/future-ai/overview-future-ai/future-ai-executors/data-source-provider.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
