Build your adapter incrementally, starting from the minimal working pattern and
adding authentication, session handling, or full-control transport as required by your
target.
| Where Can I Use This? | What Do I Need? |
- Prisma AIRS (AI Red Teaming)
|
|
You write plain Python functions; the SDK types (
PreProcessResult,
raise_rate_limited, and others) are available without
importing. The adapter contract supports two main patterns: the
pre_process/
post_process pair, where the platform makes the HTTP
call for you, and the
call_target
function, where you make the call yourself. Add
authenticate() for dynamic tokens and
session_pre_process() for server-side session
initialization. For the full code contract covering every function signature, the
context object, all return types, error signaling, and
WebSocket examples, see the
Adapter Contract (SDK Reference).