Files
markitect-main/examples/infospace-with-history/schemas/economic-entity-schema-v1.0.md
tegwick fecc2fd4fa feat(llm): add LLM integration module with OpenRouter and Claude Code adapters
Implements markitect/llm/ package with concrete LLMAdapter implementations:
- OpenRouterAdapter: HTTP via urllib with retry/backoff on 429/5xx
- ClaudeCodeAdapter: subprocess-based Claude CLI with stdin piping
- Factory pattern: create_adapter("openrouter") or create_adapter("claude-code")
- API key resolution chain: constructor > env var > project-root key file
- 42 unit tests, 2 integration tests (gated on API key / CLI availability)

Also adds the infospace-with-history example with Wealth of Nations VSM
analysis pipeline, templates, schemas, source chapters, and processed
output for chapters 1-2. process_chapters.py now supports --provider
and --model flags for automatic LLM-driven processing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 01:17:58 +01:00

1.3 KiB

Economic Entity Schema v1.0

Schema definition for economic entities extracted from source texts.

Required Sections

Definition

A clear, analytical definition of the economic entity (20-150 words).

Source Chapter

The specific chapter from which this entity was extracted, including book and chapter number.

Context

The broader context in which this entity appears within the source text. Describe the argument or passage where the entity is discussed.

Economic Domain

The area of economics this entity belongs to (e.g., labour economics, trade theory, market theory, institutional economics).

Optional Sections

Smith's Original Wording

A direct quotation from Adam Smith's text that defines or describes this entity. Must be enclosed in quotation marks with chapter reference.

Modern Interpretation

How this entity is understood in modern economic theory, including any evolution in meaning since Smith's time.

Validation Rules

  1. The document MUST contain an H1 heading with the entity name.
  2. The document MUST contain all four required sections: Definition, Source Chapter, Context, Economic Domain.
  3. The Definition section MUST be between 20 and 150 words.
  4. The Source Chapter section MUST cite a specific chapter (e.g., "Book I, Chapter 1").