PDFBase64Content
Base classes¶
Name | Children | Inherits |
---|---|---|
BasePDFContent llmling_agent.models.content Base for PDF document content. |
⋔ Inheritance diagram¶
graph TD
94376906993264["content.PDFBase64Content"]
94376906810704["content.BasePDFContent"]
94376906438544["content.BaseContent"]
94376871297088["schema.Schema"]
94376872608160["main.BaseModel"]
140612526616800["builtins.object"]
94376906810704 --> 94376906993264
94376906438544 --> 94376906810704
94376871297088 --> 94376906438544
94376872608160 --> 94376871297088
140612526616800 --> 94376872608160
🛈 DocStrings¶
Bases: BasePDFContent
PDF from base64 data.
Source code in src/llmling_agent/models/content.py
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
|
type
class-attribute
instance-attribute
¶
type: Literal['pdf_base64'] = Field('pdf_base64', init=False)
Base64-data based PDF.
from_bytes
classmethod
¶
from_bytes(
data: bytes, *, detail: DetailLevel | None = None, description: str | None = None
) -> Self
Create PDF content from raw bytes.
Source code in src/llmling_agent/models/content.py
213 214 215 216 217 218 219 220 221 222 223 |
|
to_openai_format
¶
Convert to OpenAI API format for PDF handling.
Source code in src/llmling_agent/models/content.py
207 208 209 210 211 |
|