Documentation
¶
Overview ¶
Package extract detects file references in HTTP request bodies sent to LLM APIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileRef ¶
type FileRef struct {
Path string `json:"path"`
Source string `json:"source"` // how it was detected: "json_field", "text_pattern"
}
FileRef represents a file reference detected in an API payload.
func FilesFromBody ¶
FilesFromBody extracts file references from an HTTP request body. It handles JSON payloads (typical of LLM APIs) and falls back to text pattern matching.
Click to show internal directories.
Click to hide internal directories.