pig_protocol/thinking
Provider-neutral thinking level configuration.
Providers translate these levels to their own wire format. A model may reject levels it does not support; Pig intentionally does not maintain a model capability catalog that could become stale.
Types
The amount of reasoning a model should perform for an inference.
pub type ThinkingLevel {
Off
Minimal
Low
Medium
High
XHigh
Max
}
Constructors
-
Off -
Minimal -
Low -
Medium -
High -
XHigh -
Max
Values
pub fn from_string(value: String) -> Result(ThinkingLevel, Nil)
Parse a provider-neutral thinking level string.
pub fn to_openai_effort(level: ThinkingLevel) -> String
Convert a thinking level to the effort names used by OpenAI-shaped APIs.
pub fn to_string(level: ThinkingLevel) -> String
Convert a thinking level to its provider-neutral stable string.