# AI States

## Overview

The AIState store all the Task an animal will execute when the brain is using the AI State.

To transition to another AI State it will check the decisions to decide if the current AIState can transition to an **A** AIState if a Decision is ***true;***  or to a **B** AIState if the a Decision is ***false.***

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FC4f8T2xOo6yxqxNkwMUH%2Fimage.png?alt=media&#x26;token=c769ec80-e2f6-47a0-bbd9-1c8c7a2368b1" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
AI States cannot Transition to themselves. Do not set on any decisions on the same AI State.&#x20;
{% endhint %}

## Parameters

### Task List

List of Task to do on the Animal during the AI State

### Decision List

List of decisions to check while the animal is on the AI State


---

# 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://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/ai-states.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.
