oc_chat
Loading...
Searching...
No Matches
resource_caps.py File Reference

Go to the source code of this file.

Namespaces

namespace  oc_chat
namespace  oc_chat.core
namespace  oc_chat.core.resource_caps

Functions

int oc_chat.core.resource_caps._clamp_upper (object value, int ceiling, *, str label)
int oc_chat.core.resource_caps.clamp_timeout (object timeout)
int oc_chat.core.resource_caps.clamp_bytes (object n)
int oc_chat.core.resource_caps.clamp_results (object n)
int oc_chat.core.resource_caps.clamp_depth (object n)
int oc_chat.core.resource_caps.clamp_workers (int n)
int oc_chat.core.resource_caps.resolve_max_tool_calls_per_turn ()
"float | None" oc_chat.core.resource_caps._settings_request (str setting)
int oc_chat.core.resource_caps._env_raised_ceiling (str key)
int oc_chat.core.resource_caps.resolve_session_cost_hard_cap_usd ()
tuple[float,...] oc_chat.core.resource_caps.resolve_cost_thresholds_usd ()
tuple[int, int] oc_chat.core.resource_caps.partition_call_budget (int prior, int n, "int | None" cap=None)

Variables

 oc_chat.core.resource_caps.MAX_TOOL_CALLS_PER_TURN = shipped("tool_calls_per_turn")
 oc_chat.core.resource_caps.MAX_PARALLEL_WORKERS = shipped("parallel_workers")
 oc_chat.core.resource_caps.MAX_TIMEOUT_S = shipped("timeout_seconds")
 oc_chat.core.resource_caps.MAX_BYTES = shipped("byte_budget")
 oc_chat.core.resource_caps.MAX_SEARCH_RESULTS = shipped("search_results")
 oc_chat.core.resource_caps.MAX_DIR_DEPTH = shipped("dir_depth")
 oc_chat.core.resource_caps._CAP_CEILING_ENV_VAR = env_var("tool_calls_per_turn")
 oc_chat.core.resource_caps._COST_CEILING_ENV_VAR = env_var("session_cost_hard_cap_usd")