AnthropicResponse
Defined in: backend/src/providers/anthropic.ts:88
Anthropic Messages API response.
Properties
Section titled “Properties”content
Section titled “content”content:
AnthropicContentBlock[]
Defined in: backend/src/providers/anthropic.ts:92
id:
string
Defined in: backend/src/providers/anthropic.ts:89
model:
string
Defined in: backend/src/providers/anthropic.ts:93
role:
"assistant"
Defined in: backend/src/providers/anthropic.ts:91
stop_reason
Section titled “stop_reason”stop_reason:
"tool_use"|"end_turn"|"max_tokens"|"stop_sequence"|null
Defined in: backend/src/providers/anthropic.ts:94
stop_sequence?
Section titled “stop_sequence?”
optionalstop_sequence:string|null
Defined in: backend/src/providers/anthropic.ts:95
type:
"message"
Defined in: backend/src/providers/anthropic.ts:90
usage:
object
Defined in: backend/src/providers/anthropic.ts:96
input_tokens
Section titled “input_tokens”input_tokens:
number
output_tokens
Section titled “output_tokens”output_tokens:
number