BedrockStreamChunk
Defined in: backend/src/providers/aws-bedrock.ts:79
Properties
Section titled “Properties”contentBlockDelta?
Section titled “contentBlockDelta?”
optionalcontentBlockDelta:object
Defined in: backend/src/providers/aws-bedrock.ts:82
contentBlockIndex
Section titled “contentBlockIndex”contentBlockIndex:
number
delta:
object
delta.text
Section titled “delta.text”text:
string
contentBlockStart?
Section titled “contentBlockStart?”
optionalcontentBlockStart:object
Defined in: backend/src/providers/aws-bedrock.ts:81
contentBlockIndex
Section titled “contentBlockIndex”contentBlockIndex:
number
contentBlockStop?
Section titled “contentBlockStop?”
optionalcontentBlockStop:object
Defined in: backend/src/providers/aws-bedrock.ts:83
contentBlockIndex
Section titled “contentBlockIndex”contentBlockIndex:
number
messageStart?
Section titled “messageStart?”
optionalmessageStart:object
Defined in: backend/src/providers/aws-bedrock.ts:80
role:
"assistant"
messageStop?
Section titled “messageStop?”
optionalmessageStop:object
Defined in: backend/src/providers/aws-bedrock.ts:84
stopReason
Section titled “stopReason”stopReason:
"end_turn"|"max_tokens"|"stop_sequence"|"content_filtered"
metadata?
Section titled “metadata?”
optionalmetadata:object
Defined in: backend/src/providers/aws-bedrock.ts:85
metrics?
Section titled “metrics?”
optionalmetrics:object
metrics.latencyMs
Section titled “metrics.latencyMs”latencyMs:
number
usage:
object
usage.inputTokens
Section titled “usage.inputTokens”inputTokens:
number
usage.outputTokens
Section titled “usage.outputTokens”outputTokens:
number
usage.totalTokens
Section titled “usage.totalTokens”totalTokens:
number