Skip to content

fix: rename system to instructions#15110

Merged
lgrammel merged 5 commits into
mainfrom
lg/0LuAAikt
May 8, 2026
Merged

fix: rename system to instructions#15110
lgrammel merged 5 commits into
mainfrom
lg/0LuAAikt

Conversation

@lgrammel
Copy link
Copy Markdown
Collaborator

@lgrammel lgrammel commented May 8, 2026

Background

With agents, the typical name of what used to be system has become instructions. ToolLoopAgent already uses instructions.

Summary

  • Introduce instructions property on generateText etc that replaces system
  • Mark system as deprecated.

@lgrammel lgrammel changed the title instructions fix: rename system to instructions May 8, 2026
@lgrammel lgrammel marked this pull request as ready for review May 8, 2026 08:47
Copy link
Copy Markdown
Contributor

@vercel vercel Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

The streamUI function silently ignores the instructions parameter because it's not destructured from the input or passed to standardizePrompt.

Fix on Vercel

@lgrammel lgrammel merged commit 016e877 into main May 8, 2026
19 checks passed
@lgrammel lgrammel deleted the lg/0LuAAikt branch May 8, 2026 09:18
lgrammel added a commit that referenced this pull request May 8, 2026
…events (#15119)

## Background

In #15110, `instructions` were introduced as a `system` replacement.
However, the updates were not propagated everywhere.

## Summary

* add `instructions` on `parseToolCall`
* add `instructions` on `ToolCallRepairFunction`
* use `instructions` instead of `system` on experimental event callbacks

## Related Issues

Builds on #15110
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

🚀 Published in:

Package Version
ai 7.0.0-canary.127
@ai-sdk/alibaba 2.0.0-canary.45
@ai-sdk/amazon-bedrock 5.0.0-canary.55
@ai-sdk/angular 3.0.0-canary.127
@ai-sdk/anthropic 4.0.0-canary.49
@ai-sdk/assemblyai 3.0.0-canary.38
@ai-sdk/azure 4.0.0-canary.53
@ai-sdk/baseten 2.0.0-canary.43
@ai-sdk/black-forest-labs 2.0.0-canary.37
@ai-sdk/bytedance 2.0.0-canary.38
@ai-sdk/cerebras 3.0.0-canary.43
@ai-sdk/cohere 4.0.0-canary.39
@ai-sdk/deepgram 3.0.0-canary.37
@ai-sdk/deepinfra 3.0.0-canary.43
@ai-sdk/deepseek 3.0.0-canary.40
@ai-sdk/elevenlabs 3.0.0-canary.37
@ai-sdk/fal 3.0.0-canary.37
@ai-sdk/fireworks 3.0.0-canary.43
@ai-sdk/gateway 4.0.0-canary.74
@ai-sdk/gladia 3.0.0-canary.37
@ai-sdk/google 4.0.0-canary.57
@ai-sdk/google-vertex 5.0.0-canary.76
@ai-sdk/groq 4.0.0-canary.40
@ai-sdk/huggingface 2.0.0-canary.43
@ai-sdk/hume 3.0.0-canary.37
@ai-sdk/klingai 4.0.0-canary.38
@ai-sdk/langchain 3.0.0-canary.127
@ai-sdk/llamaindex 3.0.0-canary.127
@ai-sdk/lmnt 3.0.0-canary.37
@ai-sdk/luma 3.0.0-canary.37
@ai-sdk/mcp 2.0.0-canary.45
@ai-sdk/mistral 4.0.0-canary.41
@ai-sdk/moonshotai 3.0.0-canary.43
@ai-sdk/open-responses 2.0.0-canary.39
@ai-sdk/openai 4.0.0-canary.53
@ai-sdk/openai-compatible 3.0.0-canary.43
@ai-sdk/otel 1.0.0-canary.73
@ai-sdk/perplexity 4.0.0-canary.40
@ai-sdk/prodia 2.0.0-canary.40
@ai-sdk/provider-utils 5.0.0-canary.36
@ai-sdk/react 4.0.0-canary.128
@ai-sdk/replicate 3.0.0-canary.38
@ai-sdk/revai 3.0.0-canary.38
@ai-sdk/rsc 3.0.0-canary.128
@ai-sdk/svelte 5.0.0-canary.127
@ai-sdk/togetherai 3.0.0-canary.43
@ai-sdk/valibot 3.0.0-canary.36
@ai-sdk/vercel 3.0.0-canary.43
@ai-sdk/voyage 2.0.0-canary.11
@ai-sdk/vue 4.0.0-canary.127
@ai-sdk/workflow 1.0.0-canary.43
@ai-sdk/xai 4.0.0-canary.56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants