content block

One typed piece of a message, such as text, an image, a tool call, a tool result or a thinking block.

In more detail

Both requests and replies carry lists of content blocks. Read replies by block type, join text blocks rather than assuming there is only one, and when streaming, rebuild each block from its start, delta and stop events by index.

Related terms

Taught in

References

Certification courses