Skip to content

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 ​

PropertyModifierTypeDescriptionOverridesInherited fromDefined in
createdAt?readonlystringISO 8601 timestamp when this block was created-BaseMediaSource.createdAtpackages/shared/src/blocks.ts:58
id?readonlystringUnique identifier for this block-BaseMediaSource.idpackages/shared/src/blocks.ts:54
index?readonlynumberPosition of this block within the message-BaseMediaSource.indexpackages/shared/src/blocks.ts:62
messageId?readonlystringID of the message containing this block-BaseMediaSource.messageIdpackages/shared/src/blocks.ts:56
metadata?readonlyRecord<string, any>Additional metadata-BaseMediaSource.metadatapackages/shared/src/blocks.ts:75
mimeType?readonlystringMIME type of the content (for media blocks)BaseMediaSource.mimeType-packages/shared/src/blocks.ts:81
summary?readonlystringHuman-readable summary of the content-BaseMediaSource.summarypackages/shared/src/blocks.ts:66
typereadonly"url" | URLDiscriminator for type narrowing (e.g., 'text', 'image', 'tool_use')BaseMediaSource.type-packages/shared/src/blocks.ts:79
urlreadonlystring---packages/shared/src/blocks.ts:80

Released under the MIT License.