From f1ddd4f3ac0f73213017df3b3d5e988906fef31b Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 01:41:56 +0000 Subject: [PATCH 1/2] docs(skills): an agent's model name and provider are optional The objectstack-ai skill's Model Configuration taught a required model name and a provider defaulting to openai. Since #37697 both are optional: an absent model runs on the host's default model, and the provider has no default. Fix the stale agent.zod.ts citation and the eval case that expected a model. Fixes #37711 Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01Q4EjjPtiBXJZAqMqBPe3UD --- .changeset/37711-skills-agent-model-optional.md | 10 ++++++++++ skills/objectstack-ai/SKILL.md | 11 +++++------ .../objectstack-ai/evals/skills-tools-knowledge.json | 2 +- 3 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 .changeset/37711-skills-agent-model-optional.md diff --git a/.changeset/37711-skills-agent-model-optional.md b/.changeset/37711-skills-agent-model-optional.md new file mode 100644 index 00000000000..bbbd87256b9 --- /dev/null +++ b/.changeset/37711-skills-agent-model-optional.md @@ -0,0 +1,10 @@ +--- +'@objectstack/skills': patch +--- + +docs(skills): an agent's model name and provider are optional + +Clause-②: no (published prose only; teaches the optional `model` / `provider` already on main since #37697) +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. The file sat at zero token headroom, so the words are paid for by tightening the same section; no fact is removed. diff --git a/skills/objectstack-ai/SKILL.md b/skills/objectstack-ai/SKILL.md index 6ee475f31b7..6de42bf7ee9 100644 --- a/skills/objectstack-ai/SKILL.md +++ b/skills/objectstack-ai/SKILL.md @@ -361,16 +361,15 @@ live, but listing-only: carried onto the tool, never sent to the model). ## Model Configuration -Sampling parameters live under an agent's `model` (`AIModelConfigSchema`) — -there is **no top-level `temperature` / `maxTokens`** on an agent -(`packages/spec/src/ai/agent.zod.ts:36-40`): +Sampling lives under an agent's `model` (`AIModelConfigSchema`), **never a +top-level `temperature` / `maxTokens`** (`packages/spec/src/ai/agent.zod.ts:37-45`): | Key | Contract | |:--|:--| -| `provider` | Inline enum `openai` \| `azure_openai` \| `anthropic` \| `local` (default `openai`). **Model-registry** entries (`ModelProviderSchema`) accept a wider set: also `google`, `cohere`, `huggingface`, `custom` | -| `model` | Free string — the provider's own model name | +| `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 numbers, unbounded by the schema | +| `maxTokens` / `topP` | Optional, schema-unbounded numbers | --- diff --git a/skills/objectstack-ai/evals/skills-tools-knowledge.json b/skills/objectstack-ai/evals/skills-tools-knowledge.json index 8a778fd6560..e10b247468d 100644 --- a/skills/objectstack-ai/evals/skills-tools-knowledge.json +++ b/skills/objectstack-ai/evals/skills-tools-knowledge.json @@ -14,7 +14,7 @@ { "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'`, a free-string `model`, `temperature: 0.3` (0–2, outside is a parse error) and `maxTokens: 2000`. States that there is no top-level `temperature` / `maxTokens` on an agent and that the inline `provider` enum is `openai | azure_openai | anthropic | local`.", + "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.", "files": [], "assertions": { "must_contain": ["provider", "anthropic", "temperature", "maxTokens"], From 85145d7192ed123ca2d8e650febe582acaa96852 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 02:05:23 +0000 Subject: [PATCH 2/2] =?UTF-8?q?docs(skills):=20changeset=20Clause-?= =?UTF-8?q?=E2=91=A1=20line=20reads=20exactly=20`no`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01Q4EjjPtiBXJZAqMqBPe3UD --- .changeset/37711-skills-agent-model-optional.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changeset/37711-skills-agent-model-optional.md b/.changeset/37711-skills-agent-model-optional.md index bbbd87256b9..3aed65d6722 100644 --- a/.changeset/37711-skills-agent-model-optional.md +++ b/.changeset/37711-skills-agent-model-optional.md @@ -4,7 +4,7 @@ docs(skills): an agent's model name and provider are optional -Clause-②: no (published prose only; teaches the optional `model` / `provider` already on main since #37697) +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. 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, 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.