Documentation / @agentick/shared / CodeBlock
Interface: CodeBlock ​
Defined in: blocks.ts:244
Code block - Code with language
Extends ​
TextualDataBlock
Properties ​
createdAt? ​
readonlyoptionalcreatedAt:string
Defined in: blocks.ts:58
ISO 8601 timestamp when this block was created
Inherited from ​
TextualDataBlock.createdAt
id? ​
readonlyoptionalid:string
Defined in: blocks.ts:54
Unique identifier for this block
Inherited from ​
TextualDataBlock.id
index? ​
readonlyoptionalindex:number
Defined in: blocks.ts:62
Position of this block within the message
Inherited from ​
TextualDataBlock.index
language ​
readonlylanguage:CodeLanguage
Defined in: blocks.ts:246
messageId? ​
readonlyoptionalmessageId:string
Defined in: blocks.ts:56
ID of the message containing this block
Inherited from ​
TextualDataBlock.messageId
metadata? ​
readonlyoptionalmetadata:Record<string,any>
Defined in: blocks.ts:64
Additional metadata
Inherited from ​
TextualDataBlock.metadata
mimeType? ​
readonlyoptionalmimeType:string
Defined in: blocks.ts:60
MIME type of the content (for media blocks)
Inherited from ​
TextualDataBlock.mimeType
summary? ​
readonlyoptionalsummary:string
Defined in: blocks.ts:66
Human-readable summary of the content
Inherited from ​
TextualDataBlock.summary
text ​
readonlytext:string
Defined in: blocks.ts:127
Inherited from ​
TextualDataBlock.text
type ​
readonlytype:"code"|CODE
Defined in: blocks.ts:245
Discriminator for type narrowing (e.g., 'text', 'image', 'tool_use')
Overrides ​
TextualDataBlock.type