# Installation

Installing the library is quite simple. First, navigate to your `build.dependencies.gradle` file, and go to the `repositories` section. There, add the maven link to jitpack.io.

```gradle
repositories {
    //you might have other stuff here
    maven { url 'https://jitpack.io' }
}
```

Then, in the dependencies section, add this:

```gradle
implementation 'com.github.StateFactory-Dev:StateFactory:0.3.9'
```

{% hint style="info" %}
The number after the colon represents the tag of the latest version of StateFactory. As of now, the most current release tag is [v0.3.9](https://github.com/StateFactory-Dev/StateFactory/releases/tag/v0.3.9).
{% endhint %}

Now do a gradle sync, and State Factory should be installed.


---

# 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://state-factory.gitbook.io/state-factory/installation.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.
