Constructor
Methods
Behavior Notes
- Adds optional system prompt automatically.
- Applies defensive truncation before completion calls.
- Includes token-budget safety helpers and retry paths for token/output-limit errors.
- Uses
max_tokenssafety logic (does not set bothmax_tokensandmax_completion_tokens).

