AIDK API Reference / aidk/content / UrlSource
Interface: UrlSource ​
Defined in: packages/shared/src/blocks.ts:78
Base properties shared by all content blocks.
Extends ​
Properties ​
| Property | Modifier | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|---|
createdAt? | readonly | string | ISO 8601 timestamp when this block was created | - | BaseMediaSource.createdAt | packages/shared/src/blocks.ts:58 |
id? | readonly | string | Unique identifier for this block | - | BaseMediaSource.id | packages/shared/src/blocks.ts:54 |
index? | readonly | number | Position of this block within the message | - | BaseMediaSource.index | packages/shared/src/blocks.ts:62 |
messageId? | readonly | string | ID of the message containing this block | - | BaseMediaSource.messageId | packages/shared/src/blocks.ts:56 |
metadata? | readonly | Record<string, any> | Additional metadata | - | BaseMediaSource.metadata | packages/shared/src/blocks.ts:75 |
mimeType? | readonly | string | MIME type of the content (for media blocks) | BaseMediaSource.mimeType | - | packages/shared/src/blocks.ts:81 |
summary? | readonly | string | Human-readable summary of the content | - | BaseMediaSource.summary | packages/shared/src/blocks.ts:66 |
type | readonly | "url" | URL | Discriminator for type narrowing (e.g., 'text', 'image', 'tool_use') | BaseMediaSource.type | - | packages/shared/src/blocks.ts:79 |
url | readonly | string | - | - | - | packages/shared/src/blocks.ts:80 |