refactor: improve typing of Text part

This commit is contained in:
Danny Avila 2024-09-04 00:33:01 -04:00
parent a1cd9983e8
commit 89eeb71373
No known key found for this signature in database
GPG key ID: 2DD9CC89B9B50364
2 changed files with 2 additions and 2 deletions

View file

@ -381,7 +381,7 @@ export type ContentPart = (
export type TMessageContentParts =
| { type: ContentTypes.ERROR; text: Text & PartMetadata }
| { type: ContentTypes.TEXT; text: string; tool_call_ids?: string[] | (Text & PartMetadata) }
| { type: ContentTypes.TEXT; text: string | (Text & PartMetadata); tool_call_ids?: string[] }
| {
type: ContentTypes.TOOL_CALL;
tool_call: (