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