Skip to the content

DocsBuild an agent

Where the agent runs

POST /v1/platform: whether an app's agent warrants a major platform or any host will do, the requirements it takes, its rules and warnings.

Most of an app can live anywhere. The part that runs its agent has needs a host either meets or does not: a turn as long as the agent's longest, an upload as large as its largest, a business associate agreement for health data, a model provider a platform hosts. This call says whether one of those warrants a major platform (Google Cloud, AWS, Azure or Cloudflare) or whether any host that meets the stated needs will do, and which hosts their own pages rule out.

On the site it is the last panel of Architect an agent. From a coding agent it is the MCP tool platform, which the rhumb skill calls once the model providers are settled (While you plan an app).

The call

POST /v1/platform (the MCP tool platform) answers where the part of an app that runs its agent should be deployed. It reads no prompt and calls no model; it is one call under the resolve scope. Its facts are the runtimes' printed limits on the runtimes' pages and the major platforms' own pages, each a quote a person copied, with its page and the day it was read. The catalog job looks for every quote each night, as it does for prices, and a fact whose words are gone a week is set aside: no answer decides on it.

What you send

What the app needs of a host:

  • baa: A business associate agreement. Implied by data_kind hipaa. No runtime read here prints one, so it warrants a major platform; an agreement covers only the model providers its page lists.
  • gpu: GPUs to run a model of its own.
  • private_network: Private networking, to reach a database or service that is not public.
  • edge: Running near each user.
  • long_running: A turn as long as longest_turn_seconds. Implied by that number.
  • websockets: WebSockets, to stream over one connection.
  • scheduled_jobs: Jobs that run on a timer, not only when called.
  • large_uploads: A request body as large as largest_upload_mb. Implied by that number.

and the goals you have: data_kind, data_region, users_in (recorded; no rule reads it yet), scale, clients, accounts (platforms, products or vendors you hold an account with) and the model providers you sent to resolve.

The rules

  1. A host whose own page prints a limit the need passes is ruled out, in ruled_out with the quote. A host whose pages say nothing either way is neither ruled in nor out: the requirement is in its not_stated.
  2. A major platform is warranted when a requirement is met by no runtime read here, when it hosts a model provider the app calls, or when you hold an account with it. A number its page prints is one service's (Lambda's, Cloud Run's), so it never rules the platform out.
  3. With one platform warranted, it is chosen. With several, the one you hold is; with none held, none is chosen.
  4. With none warranted, the answer is generic: host_must says what any host must meet, and the runtimes that meet it are priced for a stated reference job (a month of turns), at listed rates. A host is chosen only among those you named in accounts.

Warnings

Rules about the app rather than a host ride along as warnings:

  • free_tier_sleeps: A host listed prints that its free tier stops serving when idle, and the app is launching, live, or runs scheduled jobs.
  • upload_by_signed_url: A host's page prints a request body smaller than largest_upload_mb. Send the file from the app straight to storage at a signed address instead.
  • apple_ai_disclosure: The app runs on iOS and handles personal data (any data_kind but none): Apple's guideline 5.1.2(i) asks it to say where data goes to a hosted model, and to ask first.
  • provider_not_under_agreement: An agreement is required, and a model provider the app calls is not among those the platform's page lists as covered.
  • data_region_not_checked: A data_region was given. No host's regions are curated yet, so the answer does not filter on it.

Like every answer, it lists the goals it assumed and, in ask, those whose other values would change it. It does not compare databases, queues or CDNs, and it names no host as best: when the rules do not settle the choice, the choice is yours.

platform.sh
#!/usr/bin/env bash
# Where an app's agent runs, with curl: a fitness coach whose phone app sends
# a 4 MB photo and whose turn may take five minutes. Prints the JSON answer:
# `kind` is `major` when a platform is warranted (a requirement no runtime
# meets, a model provider it hosts, an account you hold) or `generic` when any
# host meeting `host_must` will do. `ruled_out` names each host whose own page
# prints a limit the need passes, with the page's words in `fact.quote`.
#
#   RHUMB_KEY=nnm_test_... bash platform.sh
#
# RHUMB_URL overrides the base URL (default https://rhumbdata.com).
# A host is chosen only among those you name in `accounts`; with none, the
# choice is yours, and the hosts are priced for a stated job, not your use.
set -euo pipefail

: "${RHUMB_KEY:?Set RHUMB_KEY to your API key}"
RHUMB_URL="${RHUMB_URL:-https://rhumbdata.com}"

curl --silent --show-error --fail-with-body --max-time 10 \
  -X POST "$RHUMB_URL/v1/platform" \
  -H "Authorization: Bearer $RHUMB_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "requires": ["large_uploads", "long_running"],
    "largest_upload_mb": 4,
    "longest_turn_seconds": 300,
    "data_kind": "health",
    "clients": ["ios", "android"]
  }'
echo