parse_shield_response: Parse Shield API Response

View source: R/shield.R

parse_shield_responseR Documentation

Parse Shield API Response

Description

Internal function to parse the Shield API response into a tidy tibble.

Usage

parse_shield_response(result, user_prompt, documents)

Arguments

result

List. The parsed JSON response from the API.

user_prompt

Character. The original user prompt.

documents

Character vector. The original documents (or NULL).

Value

A tibble with source, content, and attack_detected columns.


foundryR documentation built on Sept. 25, 2026, 1:10 a.m.