ci / check (push) Canceled after 0s
Harness spec 3.9.0 (interactive.md), the CLI's side. - interactive_only is read from /v1/models; /model says which models are for interactive use only. - A session's title and its compaction, asked for or automatic, are not asked of an interactive-only model: they go to its twin, else to the global model or the server's default when that is not interactive-only; with none the title is left, automatic compaction is skipped and said once, and a compaction asked for is refused in the spec's words. - Scheduled work never uses one: a scheduled session/new or session/prompt is refused with the sentence and data.reason interactive_only before anything is sent, a scheduled turn cannot switch to one or start a subagent on one, and a scheduled session opened with no model skips one the directory remembers. lembas run with no terminal at all is the same. - A person's turns, and the subagents of their session, are untouched. Also the type of LOOP.interactive, which the spec commit left too narrow for the JSON it reads. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
251 lines
10 KiB
JSON
251 lines
10 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"properties": {
|
|
"connections": {
|
|
"default": {},
|
|
"description": "The LLeMbas server this machine is logged in to, as `lembas login` writes it: its address and this machine's token. Its models come from it at every start.",
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"type": "string"
|
|
},
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "webui",
|
|
"description": "A LLeMbas instance: its models, their settings, its voice and its web search."
|
|
},
|
|
"url": {
|
|
"type": "string",
|
|
"description": "The instance's address, e.g. https://ai.example.org (no /v1)."
|
|
},
|
|
"api_key": {
|
|
"description": "This machine's token, as login wrote it: {file:~/.config/lembas/lembas/<name>.key}.",
|
|
"type": "string"
|
|
},
|
|
"tls": {
|
|
"description": "For an instance behind a private CA: `ca`, the PEM file that signed its certificate.",
|
|
"type": "object",
|
|
"properties": {
|
|
"ca": {
|
|
"type": "string"
|
|
},
|
|
"insecure": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"timeout": {
|
|
"description": "Seconds of silence allowed in a reply, as for any connection (default 600).",
|
|
"type": "number",
|
|
"exclusiveMinimum": 0
|
|
},
|
|
"quirks": {
|
|
"description": "Server oddities; auto is right almost always.",
|
|
"type": "object",
|
|
"properties": {
|
|
"stream_usage": {
|
|
"description": "Ask for token usage in the stream (stream_options); auto learns when a server refuses it.",
|
|
"type": "string",
|
|
"enum": [
|
|
"auto",
|
|
"on",
|
|
"off"
|
|
]
|
|
},
|
|
"prompt_progress": {
|
|
"description": "Ask how far the server is through reading the prompt (llama.cpp's return_progress), shown while it reads; auto learns when a server refuses it, and one that ignores it shows nothing.",
|
|
"type": "string",
|
|
"enum": [
|
|
"auto",
|
|
"on",
|
|
"off"
|
|
]
|
|
},
|
|
"think_tags": {
|
|
"description": "<think>…</think> in a reply is taken as reasoning; off leaves it as text.",
|
|
"type": "string",
|
|
"enum": [
|
|
"auto",
|
|
"on",
|
|
"off"
|
|
]
|
|
},
|
|
"max_tokens_field": {
|
|
"description": "OpenAI reasoning models refuse `max_tokens`; most local servers only know it.",
|
|
"type": "string",
|
|
"enum": [
|
|
"max_tokens",
|
|
"max_completion_tokens"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"models": {
|
|
"description": "Only to change what the instance says about a model, here: each entry goes over the instance's. Usually absent.",
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"type": "string"
|
|
},
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"description": "A display name; the id is what is sent.",
|
|
"type": "string"
|
|
},
|
|
"family": {
|
|
"description": "Picks the prompt overlay: anthropic | gpt | gemini | local. Guessed from the id when absent.",
|
|
"type": "string"
|
|
},
|
|
"context": {
|
|
"description": "Total context window in tokens. 0 / absent = unknown: no percentage, no auto-compaction.",
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 9007199254740991
|
|
},
|
|
"max_output": {
|
|
"description": "Max tokens per reply.",
|
|
"type": "integer",
|
|
"exclusiveMinimum": 0,
|
|
"maximum": 9007199254740991
|
|
},
|
|
"temperature": {
|
|
"description": "Sampling temperature; absent = the server's default.",
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 2
|
|
},
|
|
"top_p": {
|
|
"description": "Nucleus sampling; absent = the server's default.",
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 1
|
|
},
|
|
"efforts": {
|
|
"description": "The model's own effort vocabulary, in offering order. [] — it takes none (its one level is `default`).",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
]
|
|
}
|
|
},
|
|
"thinking_switch": {
|
|
"description": "The server turns thinking off for a request with chat_template_kwargs.enable_thinking false: only then is the level `off` offered.",
|
|
"type": "boolean"
|
|
},
|
|
"effort": {
|
|
"description": "The level a conversation starts with, when the model offers it: an effort, `off` (thinking switched off, with thinking_switch) or `default` (nothing sent, for a model that takes no efforts).",
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max"
|
|
]
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "off"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"const": "default"
|
|
}
|
|
]
|
|
},
|
|
"effort_style": {
|
|
"description": "Where the effort goes in a request: top-level, in chat_template_kwargs, or both (the default: llama.cpp drops top-level).",
|
|
"type": "string",
|
|
"enum": [
|
|
"top",
|
|
"kwargs",
|
|
"both"
|
|
]
|
|
},
|
|
"vision": {
|
|
"description": "The model reads images: @image files, pasted paths and view_image.",
|
|
"type": "boolean"
|
|
},
|
|
"interactive_only": {
|
|
"description": "The server's word that this model is for a person's own turns only (harness interactive.md): no scheduled work is sent to it, and a session's title and compaction are asked of another model.",
|
|
"type": "boolean"
|
|
},
|
|
"html_pages": {
|
|
"description": "The server's word that this model can write HTML pages (harness pages.md). Read and kept, never used here: a terminal's model is not offered pages.",
|
|
"type": "boolean"
|
|
},
|
|
"tools": {
|
|
"description": "false: a model without tool calls — it can only talk.",
|
|
"type": "boolean"
|
|
},
|
|
"headers": {
|
|
"description": "Extra HTTP headers for this model's requests.",
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"type": "string"
|
|
},
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"body": {
|
|
"description": "Merged into every request body for this model.",
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"type": "string"
|
|
},
|
|
"additionalProperties": {}
|
|
},
|
|
"notes": {
|
|
"description": "What this model is good at, in a line: the model in use is told which others there are, for handing work over (task) or switching.",
|
|
"type": "string",
|
|
"maxLength": 300
|
|
},
|
|
"single_session": {
|
|
"description": "The server serves one request at a time: a subagent on this same model would take its only slot and push the session's cached prompt out, so it is refused (name a model on another server instead). The same as parallel: 1.",
|
|
"type": "boolean"
|
|
},
|
|
"parallel": {
|
|
"description": "How many requests the model's server serves at once (capacity.parallel); wins over single_session. Absent with no single_session: no limit (a hosted API). The session's model is its own subagents' model only when it serves at least 2.",
|
|
"type": "integer",
|
|
"exclusiveMinimum": 0,
|
|
"maximum": 9007199254740991
|
|
},
|
|
"group": {
|
|
"description": "Models sharing one GPU server that holds one model at a time (llama-swap), as the LLeMbas server says (capacity.group): a subagent on another model of the same group would unload this one, so it is refused.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"url"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"title": "LLeMbas CLI connections.yaml",
|
|
"description": "~/.config/lembas/connections.yaml: the LLeMbas server this machine is logged in to, as lembas login writes it. Global only."
|
|
}
|