Skip to content

Commit 1ad1ebb

Browse files
committed
feat: add pdf object
1 parent fb5e7e4 commit 1ad1ebb

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

workflowai/core/fields/pdf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from workflowai.core.fields.file import File
2+
3+
4+
class PDF(File):
5+
"""A field representing a PDF file.
6+
7+
This field is used to handle PDF inputs.
8+
The PDF can be provided either as base64-encoded data or as a URL.
9+
"""
10+
11+
pass

workflowai/fields.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from workflowai.core.fields.http_url import HttpUrl as HttpUrl
77
from workflowai.core.fields.image import Image as Image
88
from workflowai.core.fields.local_date_time import DatetimeLocal as DatetimeLocal
9+
from workflowai.core.fields.pdf import PDF as PDF
910
from workflowai.core.fields.price import Price as Price
1011
from workflowai.core.fields.surface_area import SurfaceArea as SurfaceArea
1112
from workflowai.core.fields.zone_info import TimezoneInfo as TimezoneInfo

0 commit comments

Comments
 (0)