Call a named API function with positional and keyword arguments. Args: name: The name of the API function to call. *args: Positional arguments to pass to the function. **kwargs: Keyword arguments to pass to the function. Returns: An object representing the called fu
(cls, name: str, *args: Any, **kwargs: Any)
| 70 | |
| 71 | @classmethod |
| 72 | def call_(cls, name: str, *args: Any, **kwargs: Any) -> Any: |
| 73 | """Call a named API function with positional and keyword arguments. |
| 74 | |
| 75 | Args: |
| 76 | name: The name of the API function to call. |
| 77 | *args: Positional arguments to pass to the function. |
| 78 | **kwargs: Keyword arguments to pass to the function. |
| 79 | |
| 80 | Returns: |
| 81 | An object representing the called function. If the signature specifies |
| 82 | a recognized return type, the returned value will be cast to that type. |
| 83 | """ |
| 84 | return cls.lookup(name).call(*args, **kwargs) |
| 85 | |
| 86 | @classmethod |
| 87 | def apply_(cls, name: str, named_args: dict[str, Any]) -> Any: |