Claudex.ContentBlock.ToolUse (Claudex v0.6.1)

Copy Markdown View Source

A request from Claude to call one of the tools you provided. Run it with input, then send the result back as a tool_result block on your next message, matched to this block's id.

Summary

Functions

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

Types

t()

@type t() :: %Claudex.ContentBlock.ToolUse{
  id: String.t(),
  input: map(),
  name: String.t()
}

Functions

to_param(block)

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

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