Coverage for src / agent / config / __init__.py: 100%
6 statements
« prev ^ index » next coverage.py v7.13.0, created at 2025-12-11 14:30 +0000
« prev ^ index » next coverage.py v7.13.0, created at 2025-12-11 14:30 +0000
1# Copyright 2025-2026 Microsoft Corporation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
15"""Configuration package for osdu-agent."""
17# Import legacy AgentConfig for backward compatibility
18from .constants import DEFAULT_GEMINI_MODEL
19from .defaults import get_default_config
20from .editor import (
21 EditorError,
22 detect_editor,
23 edit_and_validate,
24 open_in_editor,
25 validate_after_edit,
26 wait_for_editor,
27)
28from .manager import (
29 ConfigurationError,
30 get_config_path,
31 load_config,
32 load_config_with_env,
33 merge_with_env,
34 save_config,
35 validate_config,
36)
37from .schema import AgentSettings, MemoryConfig, ProviderConfig, TelemetryConfig
39__all__ = [
40 # Constants
41 "DEFAULT_GEMINI_MODEL",
42 # Schema
43 "AgentSettings",
44 "ProviderConfig",
45 "TelemetryConfig",
46 "MemoryConfig",
47 # Manager
48 "ConfigurationError",
49 "get_config_path",
50 "load_config",
51 "load_config_with_env",
52 "save_config",
53 "merge_with_env",
54 "validate_config",
55 # Defaults
56 "get_default_config",
57 # Editor
58 "EditorError",
59 "detect_editor",
60 "open_in_editor",
61 "wait_for_editor",
62 "validate_after_edit",
63 "edit_and_validate",
64]