Skip to main content
API reference sections

Schema

AgentModelsResponse

The models one local agent lists, in the agent's own ids. Empty when the agent lists none: the picker then shows no model level under it.

Type object

Shape

FieldTypeDescription
providerrequiredAiProviderId

Extensible provider token such as openai, ollama, or koru.

modelsrequiredarray of AgentModelView
modesarray of AgentModeView

The agent's approval modes (koru-ai D7), in its order, with its own ids. Empty when it offers none: a client then shows no mode control.

default_modestring or null

The mode the agent reports it starts in - the one a chat that chose none runs in. Absent when the agent does not say.

levels_per_turnboolean

A begun chat's level can change, applied from its next message (koru-ai D70): the agent's session host takes a level with each message. false - the level stays the one the chat started at - against an older host, and from an older service.

models_per_turnboolean

A begun chat's model can move to another of the agent's models, applied from its next message: the agent's session host takes a model with each message (session protocol v22). false - the model stays the one the chat started on - against an older host, and from an older service.

Example
{
  "provider": "string",
  "models": [
    {
      "id": "string",
      "group": "string",
      "name": "string",
      "description": "string",
      "group_name": "string",
      "legacy": false,
      "reasoning": {
        "kind": "unsupported"
      },
      "context": {
        "id": "string",
        "tokens": 0
      },
      "fast": {
        "on_by_default": false
      }
    }
  ],
  "modes": [
    {
      "id": "string",
      "name": "string",
      "description": "string"
    }
  ],
  "default_mode": "string",
  "levels_per_turn": false,
  "models_per_turn": false
}

The contract has no example values, so example bodies are generated from each schema: every field is shown with a placeholder of its type.

Used by

Generated from contract version 1. Last updated .

Privacy choices

Choose which optional tools Koru may use on this site. Your choice is saved in a cookie in this browser for 12 months. Privacy policy

Privacy choices

Keep you signed in, protect forms and remember your language and this choice.

Always on

PostHog and Google Analytics 4 measure page views and actions such as downloads, using cookies or local storage.

PostHog records how pages are used, with form inputs masked and private pages excluded. Needs Analytics.

Ahrefs Web Analytics measures visits and where they come from, and Google Ads measures whether our ads led to a visit or download.