Add ground_truth API and refactor
This commit is contained in:
parent
c5cafbee47
commit
421f9bb726
1 changed files with 409 additions and 211 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import inspect
|
||||
from typing import Any, Callable
|
||||
from typing import Any, Callable, TypeVar
|
||||
|
||||
from great_ai.great_ai.helper.get_function_metadata_store import (
|
||||
get_function_metadata_store,
|
||||
|
|
@ -7,8 +7,10 @@ from great_ai.great_ai.helper.get_function_metadata_store import (
|
|||
|
||||
from .parameter import parameter
|
||||
|
||||
F = TypeVar("F", bound=Callable[..., Any])
|
||||
|
||||
def automatically_decorate_parameters(func: Callable[..., Any]) -> Callable[..., Any]:
|
||||
|
||||
def automatically_decorate_parameters(func: F) -> F:
|
||||
signature = inspect.signature(func)
|
||||
parameter_names = [
|
||||
param.name
|
||||
|
|
|
|||
Loading…
Reference in a new issue