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
10 changes: 10 additions & 0 deletions .changeset/37711-skills-agent-model-optional.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@objectstack/skills': patch
---

docs(skills): an agent's model name and provider are 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.
11 changes: 5 additions & 6 deletions skills/objectstack-ai/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

---

Expand Down
2 changes: 1 addition & 1 deletion skills/objectstack-ai/evals/skills-tools-knowledge.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
Loading