Table of Contents

Class ContentBlock

Namespace
Emissary
Assembly
Emissary.dll

One block of message content — text, thinking, a tool call, or a tool result.

[JsonPolymorphic(TypeDiscriminatorPropertyName = "type")]
[JsonDerivedType(typeof(TextBlock), "text")]
[JsonDerivedType(typeof(ThinkingBlock), "thinking")]
[JsonDerivedType(typeof(RedactedThinkingBlock), "redacted_thinking")]
[JsonDerivedType(typeof(ToolUseBlock), "tool_use")]
[JsonDerivedType(typeof(ToolResultBlock), "tool_result")]
public abstract record ContentBlock : IEquatable<ContentBlock>
Inheritance
ContentBlock
Implements
Derived
Inherited Members