Learn R Programming

sdcMicro (version 5.8.1)

build_agentic_prompt: Build prompt for agentic batch strategy generation

Description

Constructs a prompt instructing the LLM to propose multiple anonymization strategies using structured tool calls. Each strategy is a sequence of sdcMicro operations (groupAndRename, microaggregation, etc.). localSuppression is applied automatically and should NOT be included.

Usage

build_agentic_prompt(summary_info, k, n_strategies = 3, tool_schemas = NULL)

Value

Character string prompt.

Arguments

summary_info

List from summarize_sdcObj_structure().

k

Desired k-anonymity level.

n_strategies

Number of strategies to propose (default 3).

tool_schemas

List from get_tool_schemas() (used for text fallback).