redaction
Ce contenu n’est pas encore disponible dans votre langue.
redaction
Section titled “redaction”Records child: which recorded fields are redacted
Translations
Section titled “Translations”- en: redaction
- de: Schwärzung
- es: redacción
- fr: rédaction / redaction
- ja: 秘匿
- ko: 삭제처리
- zh: 脱敏
Example — An assistant with rules
Section titled “Example — An assistant with rules”Sorts incoming support messages, states its goal, asks an AI model for help, and declares what it is and is not allowed to do. Also declares what it measures and what gets recorded.
machine support_triage achieves goal "Route each message to the right team" succeeds when "the right team gets the message" never "share customer details outside the team" for example assuming authority: admin assuming classify {team: "billing"} assuming fetch_page {body: {teams: ["billing", "support"]}, status: 200} assuming peek {status: "idle"} given {message: "My payment failed"} expect {team: "billing"} accepts message as text, is required responds with team as text behaves ask classify, using: "fast" with role "You are a support message sorter." context tone: "keep it brief" with task "Choose a team for: ${input.message}" tools web_search: "Look things up on the web" returns team as text, is required ask fetch_page, from: "@mashin/actions/http/get" url: "https://example.com/teams" ask peek, of: order_check question: "current status" ensures budget cost: 0.50 on_exceed: "halt" permissions allowed to model not allowed to network.http.post requires approval for network.http authority requires: admin guards pii_detection on_violation: "redact" needs api_key: "required" optimizes metrics accuracy: {type: "percentage", target: 95} rewards speed_bonus: {when: "metrics.accuracy >= 90", value: 0.3} records events behavioral: enabled retention days: 90 redaction fields: ["email"] integrity hash_chain: enabled verifies test "billing goes to billing" assuming authority: admin assuming classify {team: "billing"} assuming fetch_page {body: {teams: ["billing", "support"]}, status: 200} assuming peek {status: "idle"} given {message: "My payment failed"} expect {team: "billing"} test "no authority is refused before the first step" given {message: "My payment failed"} expect error authority_required