AudioBase64Content
Base classes¶
Name | Children | Inherits |
---|---|---|
AudioContent llmling_agent.models.content Base for audio content. |
⋔ Inheritance diagram¶
graph TD
94229445167216["content.AudioBase64Content"]
94229448723904["content.AudioContent"]
94229448349568["content.BaseContent"]
94229438169392["schema.Schema"]
94229417688032["main.BaseModel"]
140359194849504["builtins.object"]
94229448723904 --> 94229445167216
94229448349568 --> 94229448723904
94229438169392 --> 94229448349568
94229417688032 --> 94229438169392
140359194849504 --> 94229417688032
🛈 DocStrings¶
Bases: AudioContent
Audio from base64 data.
Source code in src/llmling_agent/models/content.py
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
|
type
class-attribute
instance-attribute
¶
type: Literal['audio_base64'] = Field('audio_base64', init=False)
Base64-encoded audio.
from_bytes
classmethod
¶
Create from raw bytes.
Source code in src/llmling_agent/models/content.py
269 270 271 272 |
|
from_path
classmethod
¶
from_path(path: StrPath) -> Self
Create from file path with auto format detection.
Source code in src/llmling_agent/models/content.py
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
|
to_openai_format
¶
Convert to OpenAI API format for audio models.
Source code in src/llmling_agent/models/content.py
263 264 265 266 267 |
|