Skip to content

tiers

Tiers: how hard an app's agents think, chosen by budget rather than model by model.

On this page 6
TypeScript
import { tiers } from "@copilotz/team";

What it keeps

It keeps 3 collections, each on the record: every change to one is an event.

CollectionKept asFields
modelChoicedocumentsspace, thread, person, tier, cap, harnesses, at
tierKinddocumentstitle, description, base, at
tierTemplatedocumentstitle, description, order, agents, off, made, at

Its named queries read for callers, as the rules let them:

QueryWho outside runs it
modelChoice.agentpeople, agents for a person, keys and routines
modelChoice.harnessespeople, agents for a person, keys and routines
modelChoice.offeredpeople, agents for a person, keys and routines

What it lets callers do

Of its 8 Actions, people may call 7; agents, contacts and someone signed out may call none.

ActionPersonAgentContactAnyoneKeyRoutineWhat it does
tiers.capyesnononononoSets the highest tier the org's members may choose.
tiers.chooseyesnononononoChooses the tier for the org, a space, a conversation or your new chats.
tiers.harnessesyesnononononoSets the order your plans run your agents' models in.
tiers.kindyesnononononoAdds or renames a kind of work of the org's own.
tiers.removeyesnononononoTakes one of the app's tiers away from the org, or deletes one it made.
tiers.restoreyesnononononoPuts one of the app's tiers back as the app has it.
tiers.saveyesnononononoSaves one of the org's tiers: its version of the app's, or a new one.

An agent works for a person, and calls what both may. A key calls only what its scope names. A routine is work done for a person, which they set going.

Only the app's own code calls tiers.model: its plugins, its schedules and the system.

Where it shows

It has no Views of its own: its front ends show it, tiers-web.

  • What it adds to resources: agentModel (tiers).

What it needs

Nothing to set. It reads agentSources, connectedPlans, model, planCredits, planTier, provider, tierKinds, tiers, typicalMessage and usage, resource kinds the app and other plugins fill.

What it requires

The runtime doesn't start without chat and spaces: add them too.

It ships in a package of its own, @copilotz/team@1.0.0-rc.66, for copilotz 1.0.0-rc.66: install it beside copilotz.

Listing

It keeps every listing rule.