Sourcetype provider = | Openai| Anthropic| Xai
Sourcetype message = {role : string;content : string option;name : string option;
} Sourcetype overhead = {per_message : int;conversation : int;
} Sourceval estimate_system_prompt : ?provider:provider -> string -> int Sourceval available_tokens :
context_window:int ->
?system_prompt_tokens:int ->
?reserve_for_response:int ->
?history_tokens:int ->
unit ->
int