- Write the required-field and type contract for the fictional row.
- Compare every accepted value with its cited passage.
- Count rejected and unresolved rows without relabeling them as observed zero.
An assistant extracts a fictional quarterly table but returns one revenue value as a string and silently omits the reporting currency. This 15-minute beginner lesson centres on one skill: write the required-field and type contract for the fictional row. The worked example (Incomplete extracted row) shows the idea on a small case; the 3 sections explain why it works.
Declare the fields and their types
Write an extraction contract for the metric, value, unit, currency, reporting interval and source passage. Distinguish a genuinely absent field from a parser failure. A syntactically valid JSON response can still omit a required currency or place an amount in the wrong type. The contract should identify what to reject rather than relying on a reviewer to notice every inconsistency in prose.
Check content against the passage
Validation of structure is only one layer. Compare the extracted amount, sign, scale and interval with the original fictional table. Keep the passage reference beside the row so a reviewer can repeat the check. If the document does not state a needed item, return an explicit unknown with the reason; do not infer the currency from an unrelated company profile or a model habit.
Keep failures visible downstream
A failed row should not quietly become zero or disappear from the reported population. Route it to review and state how many rows were accepted, rejected and unresolved. Summaries should use only the approved extraction set and disclose material missingness. This preserves the distinction between reading a document, validating a record and interpreting a financial comparison.
Illustrative worked example — Incomplete extracted row
Supplied input
Required: revenue, numeric value, currency, period and source. Output: revenue="120", currency absent.
Example result to inspect
Reject or review the row until type and currency are verified against the supplied source.
The response may be valid JSON while failing both its structural contract and evidence requirements.
This is an authored teaching example, not a recorded live provider run or an independent performance test.
Make the idea concrete.
- Write the required-field and type contract for the fictional row.
- Compare every accepted value with its cited passage.
- Count rejected and unresolved rows without relabeling them as observed zero.
What a useful outcome looks like
A valid extraction needs both structural checks and source agreement; missing evidence remains a review state.
Ask for reasoning you can verify.
Use fictional or permitted data. This is a copyable brief for a separate approved model; no model is called from this article.
Help me review the fictional extraction contract and returned row. Check required fields, numeric types, units, currency, reporting interval and source passage separately. Ask me to identify the first failing condition before explaining it. Preserve rejected and unresolved rows in the counts. Propose a missing-field negative control. Do not infer absent financial values, invent source support or claim a real provider test occurred.
Turn reading into a reviewed checkpoint.
Complete the manual exercise, review each item, then answer the evidence question. This records self-study, not independent assessment of expertise.
Review the checklist and pass the question to save this lesson.
Primary references
References support further checking; cited organizations do not endorse AgentX. This guide is original AI-assisted educational content with illustrative examples. Read the editorial policy or report a correction.
Continue with a related task.
Turn a market question into a bounded research contract
A fictional learner asks whether an AI news summary can explain changes in a paper dataset without turning the summary into a trading instruction.
Freeze a source manifest before summarizing
A paper-research folder contains two versions of a fictional announcement, and a generated summary does not identify which revision it used.
Keep calculations outside an unsupported narrative
A fictional paper report combines a supplied gross result with a stated cost, but the generated commentary presents its arithmetic as evidence of future performance.