# Build with agents

Give your agent the documentation and the information it needs to make a supported request.

## Discover capabilities

Start with [Explore](https://mia-ai-proxy.ambr.io/explore) and the [agent index](https://mia-ai-proxy.ambr.io/llms.txt). Select a model and check its supported interface before calling it. [Native APIs](https://mia-ai-proxy.ambr.io/docs/native-apis.md) covers SDK setup, protocol-specific URLs, and tool integrations. A catalog entry is not a guarantee of access or availability.

## Read as text

Use [llms.txt](https://mia-ai-proxy.ambr.io/llms.txt) to discover the documentation, [llms-full.txt](https://mia-ai-proxy.ambr.io/llms-full.txt) for the full text, or append `.md` to a documentation page URL for its Markdown.

## Set up a personal key

Follow the [personal key guide](https://mia-ai-proxy.ambr.io/console/skills/mia-ai-proxy-user/SKILL.md). Keep the key in your local environment or secret manager, and give the agent the API base URL and model ID. Do not paste keys into prompts or source files.

## Preserve conversation state

Keep complete assistant messages and tool calls between turns. For Responses, preserve the response output or response ID; for Messages, preserve all assistant content blocks. Use the same key and account for continuation. If a stored reference cannot continue on the requested model or route, start a new turn with portable history.

## Handle uncertainty

Treat interrupted streams as incomplete and avoid automatic retries of paid requests with unknown outcomes. See [Errors and retries](https://mia-ai-proxy.ambr.io/docs/errors.md).
