Skip to content

feat(ai): remove unnecessary data from events#14654

Merged
aayush-kapoor merged 3 commits intomainfrom
aayush/remove-event-data
Apr 21, 2026
Merged

feat(ai): remove unnecessary data from events#14654
aayush-kapoor merged 3 commits intomainfrom
aayush/remove-event-data

Conversation

@aayush-kapoor
Copy link
Copy Markdown
Collaborator

@aayush-kapoor aayush-kapoor commented Apr 21, 2026

Background

there was unnecessary data being passed through the core lifecycle events that could be stripped away.

Summary

  • from tool execution event - step number, messages, provider, modelId were removed
  • from step start event - timeout, headers and stopWhen data was removed

Manual Verification

na

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

@tigent tigent Bot added ai/core core functions like generateText, streamText, etc. Provider utils, and provider spec. maintenance CI, internal documentation, automations, etc labels Apr 21, 2026
@aayush-kapoor aayush-kapoor merged commit e1bfb9c into main Apr 21, 2026
18 checks passed
@aayush-kapoor aayush-kapoor deleted the aayush/remove-event-data branch April 21, 2026 14:06
aayush-kapoor added a commit that referenced this pull request Apr 23, 2026
## Background

as a follow up to the PR #14654 and
#14606, we had to continue removing and
aligning the event data sent at each callback in the lifecycle

## Summary

- `prompt` property removed and `StandardizedPrompt` used instead
- `stepNumber` removed and made to derive from the `steps`
- `interface` -> `type` used
- properties that have overlap with `langaugeModelCallOptions` were
stripped and made to use that type
 
## Manual Verification

na

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/core core functions like generateText, streamText, etc. Provider utils, and provider spec. maintenance CI, internal documentation, automations, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants