6b7e6b44f1
Python Build and Type Check / python-ci (ubuntu-latest, 3.11) (push) Has been cancelled
Python Build and Type Check / python-ci (ubuntu-latest, 3.13) (push) Has been cancelled
Python Build and Type Check / python-ci (windows-latest, 3.11) (push) Has been cancelled
Python Build and Type Check / python-ci (windows-latest, 3.13) (push) Has been cancelled
Python Integration Tests / python-ci (ubuntu-latest, 3.13) (push) Has been cancelled
Python Integration Tests / python-ci (windows-latest, 3.13) (push) Has been cancelled
Python Notebook Tests / python-ci (ubuntu-latest, 3.13) (push) Has been cancelled
Python Notebook Tests / python-ci (windows-latest, 3.13) (push) Has been cancelled
Python Smoke Tests / python-ci (ubuntu-latest, 3.13) (push) Has been cancelled
Python Smoke Tests / python-ci (windows-latest, 3.13) (push) Has been cancelled
Python Unit Tests / python-ci (ubuntu-latest, 3.13) (push) Has been cancelled
Python Unit Tests / python-ci (windows-latest, 3.13) (push) Has been cancelled
gh-pages / build (push) Has been cancelled
Python Publish (pypi) / Upload release to PyPI (push) Has been cancelled
Spellcheck / spellcheck (push) Has been cancelled
29 lines
553 B
Python
29 lines
553 B
Python
# Copyright (c) 2024 Microsoft Corporation.
|
|
# Licensed under the MIT License
|
|
|
|
"""Typing module."""
|
|
|
|
from dataclasses import dataclass
|
|
from enum import Enum
|
|
|
|
import pandas as pd
|
|
|
|
|
|
class SearchType(Enum):
|
|
"""SearchType class definition."""
|
|
|
|
Basic = "basic"
|
|
Local = "local"
|
|
Global = "global"
|
|
Drift = "drift"
|
|
|
|
|
|
@dataclass
|
|
class SearchResult:
|
|
"""SearchResult class definition."""
|
|
|
|
# create a dataclass to store the search result of each algorithm
|
|
search_type: SearchType
|
|
response: str
|
|
context: dict[str, pd.DataFrame]
|