← Back to Sentinel
Sentinel

Sentinel Templates

Starter Python files to build your own Sentinel tools and structured endpoint inputs/outputs. Download one, edit it, and upload it in the Sentinel web console.

Tool file

Tools → Upload

A starter Python file for a Sentinel tool. Each top-level function becomes an approval-gated agent tool — the docstring is the description the model reads, and annotated parameters become the tool's inputs. Copy it, rename it, and replace the functions, then upload it under Tools → Upload.

Download sentinel-tool-template.py

Endpoint structured I/O

Endpoints → Structured I/O

A starter Python file of pydantic BaseModel classes for a structured endpoint. Pick an output model to coerce the agent's answer into JSON, and/or an input model to validate the request and drive the prompt template with %field% placeholders. Upload it under Endpoints → Structured I/O.

Download sentinel-endpoint-structure-template.py