Capture Phases
Capture Phases
Section titled “Capture Phases”Capture phases name where data sits in the proxy pipeline. Use phase names for capture artifacts, config fields, flow locals, and logs that describe the proxy pipeline.
- 1
inbound_requestModulesingress/pipeline/inbound_requestResponsibilityThe original local client request after HTTP admission and protocol detection.
- 2
provider_requestModulesroutingtranslation/provider/*/requestResponsibilityThe selected provider request after routing, protocol conversion, model rewrite, projection, and serialization.
- 3
upstream_responseModulesprovider/*/transportpipeline/upstream_responseResponsibilityThe upstream status, headers, and body bytes before outbound response reconstruction.
- 4
outbound_responseModulestranslation/http_supportResponsibilityThe final response reconstructed for the client-facing inbound protocol.
Config switches
Section titled “Config switches”| Config field | Phase |
|---|---|
inbound_request_enabled | inbound_request |
provider_request_enabled | provider_request |
upstream_response_enabled | upstream_response |
outbound_response_enabled | outbound_response |
CLI phase names
Section titled “CLI phase names”The capture CLI accepts hyphenated phase names:
proxai capture enable inbound-requestproxai capture enable provider-requestproxai capture enable upstream-responseproxai capture enable outbound-responsePrivacy risk
Section titled “Privacy risk”| Phase | Likely sensitive content |
|---|---|
inbound_request | Client prompts, input files, tool outputs, client-provided headers |
provider_request | Translated prompts, provider payloads, tool arguments, provider auth decisions |
upstream_response | Model output, tool-call arguments, provider headers, raw SSE bytes |
outbound_response | Final model output and protocol-specific response payload |