File size: 655 Bytes
6918275
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Before Main LLM Call Extensions DOX

## Purpose

- Own backend behavior that runs immediately before the main LLM call.

## Ownership

- Ordered Python files own pre-call logging or context preparation for streaming/model execution.

## Local Contracts

- Do not mutate prompt or history data unless the hook contract explicitly passes mutable state for that purpose.
- Avoid logging secrets, hidden prompt sections, or private user data.

## Work Guidance

- Keep this hook light because it sits on the main model hot path.

## Verification

- Run targeted model-call or streaming tests after behavior changes.

## Child DOX Index

No child DOX files.