# Using Agents

Agents support the following resource types:

* [Cybus::Connection](https://docs.cybus.io/1-10-2/documentation/services/service-commissioning-files/resources/cybus-connection)
* [Cybus::Endpoint](https://docs.cybus.io/1-10-2/documentation/services/service-commissioning-files/resources/cybus-endpoint)
* [Cybus::Mapping](https://docs.cybus.io/1-10-2/documentation/services/service-commissioning-files/resources/cybus-mapping)

The endpoint resource can also use the `rules` property to enable data manipulation and pre-processing on the edge, using the [Rule Engine](https://docs.cybus.io/1-10-2/documentation/services/rule-engine) for edge processing.

To deploy these resources on an agent, set the `agentName` property for each connection in the service commissioning file. All endpoint resources that rely on that connection will automatically run on the same agent, without needing additional configuration.

{% hint style="danger" %}
The value of the `agentName` property (for `Cybus::Connection` resources) must exactly match the `CYBUS_AGENT_NAME` environment variable value used during agent startup.
{% endhint %}


---

# 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.cybus.io/1-10-2/documentation/agents/using-agents.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.
