oc_chat
Loading...
Searching...
No Matches
generation_options.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3# oc_chat/core/generation_options.py
4
5"""
6Provider-neutral generation options — harness re-export shim.
7
8Purpose
9-------
10:class:`GenerationOptions` was relocated to the shared leaf
11``option_c_agent_contracts.generation_options`` by plan 154 so provider
12bundles consume it without importing ``oc_chat``. This module re-exports it
13unchanged so the harness call sites (``commands``, ``main``, session
14metadata, …) keep their ``from oc_chat.core.generation_options import
15GenerationOptions`` import byte-for-byte.
16
17Responsibilities
18----------------
19- Re-export :class:`GenerationOptions` from the contract leaf.
20
21Diagnostics
22-----------
23Domain: OC_CHAT.CTX
24Levels:
25 L2 — lifecycle events
26 L3 — semantic details
27 L4 — module load / deep tracing
28
29Contracts
30---------
31- The re-exported ``GenerationOptions`` is the identical object to the
32 leaf's — validation and ``model_dump`` behaviour are unchanged.
33
34Dependencies
35------------
36- oc_diagnostics (structured debug logging via _dbg)
37- option_c_agent_contracts.generation_options (the relocated model)
38"""
39from __future__ import annotations
40
41from oc_diagnostics import _dbg
42
43from option_c_agent_contracts.generation_options import GenerationOptions
44
45_dbg("OC_CHAT.CTX", "module", "loaded", 4)
46
47__all__ = ["GenerationOptions"]