ON-PREM CHOREO CLOUD BOTH

What you will learn

  • Draw the hierarchy of organisation, project and agent, and say where environments fit in
  • Say where each level is recorded, in the token, in OpenChoreo or in AMS's database
  • Explain what a deployment pipeline decides and which environment a deploy lands in
  • Tell an internal agent from an external agent

Before you start

On this page

Before you create your first agent you need to know where it will live. Agent Manager organises everything in a few levels. Once you can name them and say who keeps each one, most screens in the console make sense.

The levels

  1. Organisation

    The top level tenant. Projects, environments, LLM providers and gateways all belong to one organisation. Agent Manager learns which one you belong to from two claims in your token, ouId and ouHandle, and it refuses a request for an organisation’s resources when either is missing.

  2. Project

    A group of related agents. In OpenChoreo a project refers to one deployment pipeline. In each environment it is bound to, a project gets its own namespace in the data plane, so its agents are kept apart from those of other projects.

  3. Agent

    The AI application itself. In OpenChoreo each agent is a Component inside a project. The agent is one of two kinds, and the kind cannot be changed later.

  4. Environment

    A place agents are deployed to, such as development or production. It belongs to the organisation. A project reaches the environments that its pipeline names.

Who keeps what

This is the question that confuses people most, so it gets its own section.

  • The token tells AMS which organisation you are in. AMS has no organisation table.
  • OpenChoreo holds the main records. When you create a project, AMS sends it to OpenChoreo. Agents are Components, environments are Environment resources and pipelines are DeploymentPipeline resources.
  • AMS’s own Postgres database holds only Agent Manager extras, such as LLM providers, gateways, monitors and scores. There is no table for organisations, projects or agents.
Component

Project (OC Project)

Shared or other Other BOTH

A project groups related agents. In OpenChoreo it is a Project resource that refers to a deployment pipeline. In every environment the project can reach, it gets its own namespace in the data plane, so its agents are kept apart from those of other projects.

Internal and external agents

An internal agent is hosted by the platform. For an agent made from source code, Agent Manager builds it from a Git repository and deploys it. An runs somewhere else. It is only registered, so the platform can trace and govern it. Build, deploy and promote are refused for an external agent, and it receives an API token instead.

Environments and pipelines

An environment is an OpenChoreo Environment. It carries a few settings: whether it is production, an optional (gvisor or kata, for stronger sandboxing), which Agent Manager stores as an annotation, and the address its agents are published on. Deploying or promoting to an environment needs the permission amp:agent:env-non-production, and a production environment needs amp:agent:env-production as well.

A is an ordered list of environments. It is made of promotion paths, and each path has a source environment and the targets it can be promoted to. A project points at exactly one pipeline.

  • The lowest environment is a source that no other path targets. A deploy goes there.
  • moves a deployment to a target environment of the pipeline.
Component

DeploymentPipeline

Shared or other Other BOTH

A deployment pipeline is an ordered list of environments that says where an agent can go. It is an OpenChoreo DeploymentPipeline resource made of promotion paths. Each path names a source environment and the target environments it can be promoted to. A project points at exactly one pipeline.

The chart creates one environment called default, which is not marked as production, and one pipeline with a single path and no targets.

Your turn

Open Try it and play the matcher: pair each level with who keeps it. Then look at the diagram and click AMS, OpenChoreo and Postgres. Which of the three holds the record of a project?

Recap

  • Organisation, project and agent are nested. Environments belong to the organisation and a project reaches them through its pipeline.
  • The organisation comes from the token. Projects, agents, environments and pipelines are kept in OpenChoreo. AMS’s database holds only its own extras.
  • A deploy lands in the lowest environment of the project’s pipeline, and promotion moves it onward.
  • An internal agent is built and run by the platform. An external agent is only registered.

Try it

Match them up

What to do: pick an item on the left, then its partner on the right.

Loading the matching game...

The diagram

What to do: look at the highlighted boxes, then click one. "Reset view" shows the whole diagram.

Loading the diagram...

Wrap up

Recap

Tick each one when you could explain it to a colleague.

Finished?

Quick check

Loading the quick check...

Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)