Coverage for src / agent / __init__.py: 78%

9 statements  

« 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. 

14 

15"""OSDU Agent - Conversational AI agent for OSDU platform operations.""" 

16 

17from importlib.metadata import PackageNotFoundError, version 

18 

19# Read version from package metadata (pyproject.toml) 

20# This ensures the version shown matches the installed package version 

21try: 

22 __version__ = version("osdu-agent") 

23except PackageNotFoundError: 

24 # Fallback for development environments where package isn't installed 

25 __version__ = "0.0.0.dev" 

26 

27__author__ = "Daniel Scholl" 

28 

29from agent.agent import Agent 

30from agent.config import AgentSettings 

31 

32__all__ = ["Agent", "AgentSettings", "__version__"]