Function to take an object from the environment. Args: object: Name of the object to take **kwargs: Additional arguments that might be passed
(object: str, **kwargs)
| 34 | return new_state |
| 35 | |
| 36 | def take_object(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]: |
| 37 | """ |
| 38 | Function to take an object from the environment. |
| 39 | |
| 40 | Args: |
| 41 | object: Name of the object to take |
| 42 | **kwargs: Additional arguments that might be passed |
| 43 | """ |
| 44 | if object: |
| 45 | return FunctionResultStatus.DONE, f"Successfully took the {object}", {} |
| 46 | return FunctionResultStatus.FAILED, "No object specified", {} |
| 47 | |
| 48 | |
| 49 | def throw_object(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]: |
nothing calls this directly
no outgoing calls
no test coverage detected