Input Parameters
Focus
Focus
Prisma AIRS

Input Parameters

Table of Contents

Input Parameters

Objects the platform passes to your adapter functions at runtime. You read from them; you do not construct them.
Where Can I Use This?What Do I Need?
  • Prisma AIRS (AI Red Teaming)

The context Object

Passed to every function.
PropertyTypeDescription
context.varsdict[str, str]Non-secret config declared in the adapter; visible in the UI.
context.secretsdict[str, str]Secret config; masked in the UI and scrubbed from logs.
context.authdict | NoneWhat authenticate() returned; None if authenticate() is not defined.
context.sessiondict | NoneWhat session_pre_process() returned, carried across turns; None if not used.
context.httphttpx.ClientPreconfigured HTTP client. Use this for all HTTP calls instead of importing another client.

Turn Input

Passed to pre_process and call_target.
PropertyTypeDescription
inference_input.promptstr | NoneThe current turn's red-team input.
inference_input.previous_messageslist[Message]Prior turns built and managed by the platform (read-only). Empty on the first or only turn.
Each Message in previous_messages:
PropertyTypeDescription
message.rolestr"user" or "assistant"
message.contentstrThe message text.

HTTP Response

Passed to post_process (Pattern A only).
PropertyTypeDescription
raw_response.status_codeintHTTP status code.
raw_response.headersdict[str, str]Response headers.
raw_response.textstrRaw response body.
raw_response.json_bodydict | list | NoneParsed JSON body; None if the response is not JSON.