# Type Alias ContentBlock

ContentBlock:
| { type: "text"; text: string }
| { type: "tool_use"; id: string; name: string; input: unknown }
| {
type: "tool_result";
tool_use_id: string;
content: string;
is_error?: boolean;
}
| {
type: "image";
source: { type: "base64"; media_type: string; data: string };
}

Content block types in messages and responses.

- Defined in packages/nexus-agents/src/core/types/model.ts:31