Jibu

A thin client for the Anthropic API, built on Req.

Jibu sends request bodies unchanged. It has no model list and no parameter schema. New API fields therefore work without a new release.

Features

Jibu is not affiliated with or endorsed by Anthropic.

Usage

client = Jibu.new(model: "claude-opus-5-5", max_tokens: 1024)

{:ok, text} = Jibu.ask(client, "Name three rivers in Germany.", effort: :low)

{:ok, booking} = Jibu.extract(client, "Workshop with MRV, 9 to 11:30.", schema)

Jibu.messages/2 takes a full request body and sends it unchanged. In tests, pass plug: {Req.Test, MyStub} to Jibu.new/1.

Installation

Add Jibu to the dependencies in mix.exs:

{:jibu, "~> 0.1"}

Documentation