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

Go to the source code of this file.

Classes

class  oc_chat.core.settings.OCChatSettings
class  oc_chat.core.settings.VerificationConfig

Namespaces

namespace  oc_chat
namespace  oc_chat.core
namespace  oc_chat.core.settings

Functions

frozenset[str] oc_chat.core.settings._known_top_keys ()
frozenset[str] oc_chat.core.settings._known_mode_keys ()
frozenset[str] oc_chat.core.settings._known_tree_keys ()
dict[str, Any] oc_chat.core.settings._read_json (Path path, list[str] warnings)
dict[str, Any] oc_chat.core.settings._deep_merge (dict[str, Any] base, dict[str, Any] over)
int oc_chat.core.settings._as_int (Any raw, int fallback)
int|None oc_chat.core.settings._as_positive_int_or_none (Any raw, *, str key, list[str] warnings)
list[float] oc_chat.core.settings._as_float_list (Any raw)
None oc_chat.core.settings._warn_unknown (dict[str, Any] raw, list[str] warnings)
OCChatSettings oc_chat.core.settings.load_settings (Path|str|None workspace_root=None)
str oc_chat.core.settings.resolve_system_prompt (OCChatSettings settings, *, str default, Path|str|None workspace_root=None)
OCChatSettings oc_chat.core.settings.init_runtime_settings (str|None cli_mode=None, *, Path|str|None workspace_root=None)
OCChatSettings oc_chat.core.settings.runtime_settings ()
str oc_chat.core.settings.runtime_mode ()
dict[str, Any] oc_chat.core.settings.active_profile ()
list[str]|None oc_chat.core.settings.resolve_tool_filter (dict[str, Any] profile)
None oc_chat.core.settings.reset_runtime_settings_for_tests ()
VerificationConfig oc_chat.core.settings.verification_config (OCChatSettings settings, str|None mode=None)

Variables

str oc_chat.core.settings.SETTINGS_FILENAME = ".oc_chat/oc_chat-settings.json"
str oc_chat.core.settings.LOCAL_SETTINGS_FILENAME = ".oc_chat/oc_chat-settings.local.json"
dict oc_chat.core.settings.DEFAULT_SETTINGS
dict oc_chat.core.settings._MODE_DEFAULTS
OCChatSettings oc_chat.core.settings._RUNTIME = None
str oc_chat.core.settings._RUNTIME_MODE = "standard"