WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 686103c

Browse files
authored
chore(ai): export ContentPart type (#10902)
## Background `onStepFinish` allows retrieval of `content` which is typed as `ContentPart<ToolSet>[]`, and it was not possible to import the `ContentPart` type from `ai` ## Summary export `ContentPart`
1 parent 1493936 commit 686103c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/nine-frogs-exist.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'ai': patch
3+
---
4+
5+
chore(ai): export ContentPart type

packages/ai/src/generate-text/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export {
33
type GenerateTextOnFinishCallback,
44
type GenerateTextOnStepFinishCallback,
55
} from './generate-text';
6+
export type { ContentPart } from './content-part';
67
export type { GenerateTextResult } from './generate-text-result';
78
export type {
89
GeneratedFile as Experimental_GeneratedImage, // Image for backwards compatibility, TODO remove in v5

0 commit comments

Comments
 (0)