Finfry::AI
The seam between finfry and an AI service. Backed by raw HTTPS calls to the
Claude Messages API with tool use (no SDK dependency). finfry exposes its
commands as tools; the model reads the ledger and proposes changes, and the
caller's block executes each tool call. The whole provider conversation lives
behind converse, so the backing implementation can later be swapped for a
multi-provider library without touching the command layer.
Request building and turn parsing are pure (testable without network).
Constants
ANTHROPIC_VERSION = "2023-06-01"
API_URL = "https://api.anthropic.com/v1/messages"
DEFAULT_MODEL = "claude-opus-4-8"
MAX_TOKENS = 4096
MAX_TURNS = 16
Constructors
from_env
SourceClass methods
Instance methods
The JSON request body. Public for testing.