Claudex.ContentBlock.Unknown (Claudex v0.6.1)

Copy Markdown View Source

A content block type this version of Claudex doesn't have a struct for yet — a server tool result, for example. Nothing is lost: raw holds the full decoded JSON, and type is its "type" field.

Summary

Functions

Returns the block exactly as the API sent it, so a type Claudex doesn't model yet still round-trips into the next request without losing anything.

Types

t()

@type t() :: %Claudex.ContentBlock.Unknown{raw: map(), type: String.t()}

Functions

to_param(unknown)

@spec to_param(t()) :: map()

Returns the block exactly as the API sent it, so a type Claudex doesn't model yet still round-trips into the next request without losing anything.