Skip to content
Fossa

Metadata

Metadata

Enable the optional text-counter feature to use fossa_sdk::text_counter::Counters::count with a verified checkpoint reference, chat body, and metadata::fetch_public_bytes as the downloader. See exact text counting.

Document::parse(Kind, bytes) validates exact provider, model, or list JSON. reference(uri) creates its DocumentRef without changing the bytes. Publishing and updating the on-chain commitment are separate operations.

This function builds a provider metadata update. Its caller supplies already published document bytes and URI. The provider must sign before execution.