Skip to main content

Module content_reference

Module content_reference 

Source
Expand description

Content reference types for prompt templates.

When prompt content (PROMPT, DIFF, PLAN) exceeds size limits, we reference the content by file path instead of embedding it inline. This prevents CLI argument limits from being exceeded while still providing agents with access to all necessary information.

Enums§

DiffContentReference
Specialized reference for DIFF content.
PlanContentReference
Specialized reference for PLAN content.
PromptContentReference
Represents content that can be either inline or referenced by path.

Constants§

MAX_INLINE_CONTENT_SIZE
Maximum size in bytes for inline content embedding. Content larger than this should be referenced by file path.