Interface: SearchResultBlock
Defined in: packages/core/src/types/messages.ts:35
An Anthropic search_result block: one search hit or one passage of a
document, with where it came from (source, any string the caller can
resolve — a URL, a record id) and a title. A tool returns these in its
toModelOutput content so Claude can cite them: its answer then carries
search_result_location citations naming the source and the quoted text.
Kept exactly as Anthropic's Messages API spells it, so it passes through
unchanged.
Properties
citations?
optionalcitations?:object
Defined in: packages/core/src/types/messages.ts:40
enabled
enabled:
boolean
content
content:
object[]
Defined in: packages/core/src/types/messages.ts:39
text
text:
string
type
type:
"text"
source
source:
string
Defined in: packages/core/src/types/messages.ts:37
title
title:
string
Defined in: packages/core/src/types/messages.ts:38
type
type:
"search_result"
Defined in: packages/core/src/types/messages.ts:36