Skip to content
Merged
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
9 changes: 7 additions & 2 deletions genkit-tools/common/src/types/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ export const TextPartSchema = EmptyPartSchema.extend({
text: z.string(),
});

/**
* Text part.
*/
export type TextPart = z.infer<typeof TextPartSchema>;

/**
* Zod schema for a reasoning part.
*/
Expand All @@ -48,9 +53,9 @@ export const ReasoningPartSchema = EmptyPartSchema.extend({
});

/**
* Text part.
* Reasoning part.
*/
export type TextPart = z.infer<typeof TextPartSchema>;
export type ReasoningPart = z.infer<typeof ReasoningPartSchema>;

/**
* Zod schema of media.
Expand Down
Loading