# Core

## AMESA Core API Documentation

### Overview

The AMESA Core API provides the fundamental building blocks for creating autonomous agents. It includes components for agents, skills, sensors, scenarios, perceptors, and the networking infrastructure for simulator communication.

#### License Management

```python
from composabl_core.utils import license_util

# Validate license (done automatically)
is_valid, error, info = license_util.validate(license_key)

if not is_valid:
    print(f"License error: {error}")
else:
    print(f"License valid for: {info['organization']}")
```

#### Code Organization

```python
# Recommended project structure
project/
├── agents/
│   ├── __init__.py
│   └── temperature_controller.py
├── skills/
│   ├── __init__.py
│   ├── teachers/
│   │   ├── maintain_temp.py
│   │   └── optimize_energy.py
│   └── controllers/
│       └── emergency_shutdown.py
├── perceptors/
│   ├── __init__.py
│   └── filters.py
└── scenarios/
    ├── __init__.py
    └── training_scenarios.py
```


---

# 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://docs.amesa.com/reference/sdk-reference/core.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.
