Context for LLMs

petrophys.reporting.context

Compact, size-bounded JSON summaries of wells and results for LLMs and other tools.

Functions

build_context

Build a deterministic JSON-safe summary of a well or workflow result.

export_context

Write a well summary or a fully computed context package.

Classes

ContextSizeError

A context exceeds its explicitly configured UTF-8 byte budget.