DocTruth 0.2.0-alpha API
Packages
Package
Description
Public API of DocTruth: auditable LLM extraction for Java.
Internal implementation details.
Internal: audit-format exporters.
Internal citation-matching primitives.
Shared JSON-over-HTTP plumbing for the four LLM providers (Anthropic, OpenAI, Gemini,
DeepSeek).
Per-vendor LLM HTTP clients (Anthropic, OpenAI, Gemini, DeepSeek).
Anthropic Messages-API HTTP client + wire records.
Jackson-deserialisable Java records mirroring the Anthropic Messages-API request and
response shapes.
DeepSeek-specific HTTP plumbing for the
DeepSeekProvider.DeepSeek Chat Completions wire-format records (request + response).
Hand-rolled Google Gemini
generateContent client per ADR 0003 (no vendor SDK on
the classpath).Jackson wire records for the Google Gemini
generateContent REST API.OpenAI Chat-Completions HTTP client + wire records.
Jackson-deserialisable Java records mirroring the OpenAI Chat Completions API request
and response shapes.
Internal section-rendering helpers shared by Layer 2 (extraction) and Layer 3 (context
strategies).
Failsafe-backed retry/backoff helper used by every provider.
Internal JSON Schema generation for provider structured-output contracts.
Service Provider Interface (SPI) extension points for DocTruth.