Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .changeset/37711-skills-agent-model-optional.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
'@objectstack/skills': patch
---

docs(skills): an agent's model name and provider are optional
docs(skills): an agent's model name is optional

Clause-②: no
Metadata-protocol: none

`skills/objectstack-ai/SKILL.md` (Model Configuration) now teaches that `model.model` is optional, and that an agent without one runs on the host's default model for the environment, and that `model.provider` is optional with no default (the deployment's choice) instead of defaulting to `openai`. The inline enum list is unchanged, and the schema citation now points at `packages/spec/src/ai/agent.zod.ts:37-45`. The `objectstack-ai` eval case on sampling settings accepts an omitted `model` and states the provider has no default. Published prose only: it teaches the optional `model` / `provider` already on main since #37697. The file sat at zero token headroom, so the words are paid for by tightening the same section; no fact is removed.
`skills/objectstack-ai/SKILL.md` (Model Configuration) now teaches that `model.model` is optional, and that an agent without one runs on the host's default model for the environment. It no longer says `model.provider` defaults to `openai`; the key itself leaves the page in the same release (see the changeset on the skill no longer teaching `model.provider`). The `objectstack-ai` eval case on sampling settings accepts an omitted `model`. Published prose only: it teaches the optional `model` already on main since #37697. The file sat at zero token headroom, so the words are paid for by tightening the same section; no fact is removed.
14 changes: 14 additions & 0 deletions .changeset/37796-skills-agent-model-provider-retired.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
'@objectstack/skills': patch
---

docs(skills): the AI skill stops teaching an agent's `model.provider`

Clause-②: no
Metadata-protocol: none

`skills/objectstack-ai/SKILL.md` (Model Configuration) drops the `provider` row from the agent model table. The section now says the `model` block names a model and never a provider: the deployment's AI settings choose the provider and resolve the model name among the providers turned on, and a written `provider` is a parse error whose fix is to delete the key (retired in protocol 19, conversion `agent-model-provider-removed`). The schema citation moves to `packages/spec/src/ai/agent.zod.ts:87-95`, the key list after the retirement.

The `objectstack-ai` eval case on sampling settings keeps its prompt (a copilot that should use Anthropic at temperature 0.3 with a 2000-token cap) and now expects the answer to write no provider key: sampling goes under `model`, the model is named in the free-string `model` or left to the host's default, and turning a provider on is the deployment's AI settings. Its assertions no longer require `provider` and `anthropic`; they require `deployment` and refuse the written line `provider: 'anthropic',`. An answer that quotes the retired spelling to warn against it still passes.

Published prose only: it teaches the retirement already on main. The file sat at zero token headroom, so the new sentences are paid for by the deleted row and no ceiling moves.
6 changes: 4 additions & 2 deletions skills/objectstack-ai/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,13 @@ live, but listing-only: carried onto the tool, never sent to the model).
## Model Configuration

Sampling lives under an agent's `model` (`AIModelConfigSchema`), **never a
top-level `temperature` / `maxTokens`** (`packages/spec/src/ai/agent.zod.ts:37-45`):
top-level `temperature` / `maxTokens`** (`packages/spec/src/ai/agent.zod.ts:87-95`).
The block names a model, never a provider: the deployment's AI settings choose
the provider and resolve the model name among the providers turned on.
`provider` is retired (protocol 19): writing it is a parse error. Delete it.

| Key | Contract |
|:--|:--|
| `provider` | Optional, no default (the deployment's choice): inline enum `openai` \| `azure_openai` \| `anthropic` \| `local`. Model-registry entries (`ModelProviderSchema`) add `google`, `cohere`, `huggingface`, `custom` |
| `model` | Optional free-string model name; absent = the host's default model for the environment |
| `temperature` | `min(0).max(2)`, default `0.7`. **Outside 0–2 is a parse error** |
| `maxTokens` / `topP` | Optional, schema-unbounded numbers |
Expand Down
6 changes: 3 additions & 3 deletions skills/objectstack-ai/evals/skills-tools-knowledge.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
{
"id": 2,
"prompt": "Our copilot should use Anthropic with a low temperature (0.3) and cap responses at 2000 tokens. Where do these settings go in the metadata?",
"expected_output": "Places sampling under the agent's `model` block (`AIModelConfigSchema`): `provider: 'anthropic'`, `temperature: 0.3` (0–2, outside is a parse error) and `maxTokens: 2000`; a free-string `model` is optional (absent runs on the host's default model), so omitting it is correct. States that there is no top-level `temperature` / `maxTokens` on an agent and that the inline `provider` enum is `openai | azure_openai | anthropic | local`, with no default.",
"expected_output": "Places sampling under the agent's `model` block (`AIModelConfigSchema`): `temperature: 0.3` (0–2, outside is a parse error) and `maxTokens: 2000`, and states that there is no top-level `temperature` / `maxTokens` on an agent. Writes no provider key: `provider` is retired in protocol 19 and a parse error, because the deployment's AI settings choose the provider, not the agent. To run on an Anthropic model, names that model in the free-string `model` (the deployment resolves the name among the providers turned on) or omits it to run on the host's default model; turning Anthropic on is done in the deployment's AI settings, not in metadata.",
"files": [],
"assertions": {
"must_contain": ["provider", "anthropic", "temperature", "maxTokens"],
"must_not_contain": []
"must_contain": ["temperature", "maxTokens", "deployment"],
"must_not_contain": ["provider: 'anthropic',"]
}
},
{
Expand Down
Loading