ImageURLContent
Base classes¶
Name | Children | Inherits |
---|---|---|
BaseImageContent llmling_agent.models.content Base for image content. |
⋔ Inheritance diagram¶
graph TD
93827290671232["content.ImageURLContent"]
93827290848880["content.BaseImageContent"]
93827291152384["content.BaseContent"]
93827278265344["schema.Schema"]
93827258649232["main.BaseModel"]
139640553287904["builtins.object"]
93827290848880 --> 93827290671232
93827291152384 --> 93827290848880
93827278265344 --> 93827291152384
93827258649232 --> 93827278265344
139640553287904 --> 93827258649232
🛈 DocStrings¶
Bases: BaseImageContent
Image from URL.
Source code in src/llmling_agent/models/content.py
83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
type
class-attribute
instance-attribute
¶
type: Literal['image_url'] = Field('image_url', init=False)
URL-based image.
to_openai_format
¶
Convert to OpenAI API format for vision models.
Source code in src/llmling_agent/models/content.py
92 93 94 95 |
|