ImageURLContent
Base classes¶
Name | Children | Inherits |
---|---|---|
BaseImageContent llmling_agent.models.content Base for image content. |
⋔ Inheritance diagram¶
graph TD
94701640090784["content.ImageURLContent"]
94701639799040["content.BaseImageContent"]
94701639593392["content.BaseContent"]
94701626040304["schema.Schema"]
94701612203136["main.BaseModel"]
139765536922080["builtins.object"]
94701639799040 --> 94701640090784
94701639593392 --> 94701639799040
94701626040304 --> 94701639593392
94701612203136 --> 94701626040304
139765536922080 --> 94701612203136
🛈 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 |
|