Writing a Custom Template
When do you need a custom template?
How templates work
Starting from the built-in template
Loading your custom template
Environment variable (recommended for deployment)
Constructor parameter (explicit)
Template YAML format
Match fields
Field
Type
Description
Behavior fields
Field
Type
Description
Available context keys (LangChain)
Key
Source
Example
Common customizations
Mark specific tools as PII-handling
Classify a tool as destructive (DELETE)
Tag all database tools
Rule ordering tips
Debugging
Next steps
Last updated
