Claudex.ContentBlock.Thinking (Claudex v0.6.1)

Copy Markdown View Source

One step of Claude's extended thinking. If you're continuing a conversation that used tools, pass this block back to the API exactly as received, signature included — don't edit or regenerate it.

Summary

Functions

Turns the block back into the map the API expects in a request.

Types

t()

@type t() :: %Claudex.ContentBlock.Thinking{
  signature: String.t(),
  thinking: String.t()
}

Functions

to_param(block)

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

Turns the block back into the map the API expects in a request.

Send it back exactly as it arrived — the API rejects a request whose thinking blocks were edited, and that includes ones whose text is empty.