ccproxy.models.detection¶
ccproxy.models.detection
¶
Shared helper dataclasses for plugin detection caches.
DetectedHeaders
dataclass
¶
DetectedHeaders(values=dict())
Normalized, lowercase HTTP headers captured during CLI detection.
as_dict
¶
filtered
¶
Return headers filtered for safe forwarding.
Source code in ccproxy/models/detection.py
get
¶
DetectedPrompts
dataclass
¶
DetectedPrompts(instructions=None, system=None, raw=dict())
Structured prompt metadata extracted from CLI detection payloads.
from_body
classmethod
¶
Build a DetectedPrompts instance from a captured request body.
Source code in ccproxy/models/detection.py
instructions_payload
¶
Return a payload suitable for injecting Codex-style instructions.
system_payload
¶
Return anthropic-style system data respecting the requested mode.