Function to sit on an object. Args: object: Name of the object to sit on **kwargs: Additional arguments that might be passed
(object: str, **kwargs)
| 60 | |
| 61 | |
| 62 | def sit_on_object(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]: |
| 63 | """ |
| 64 | Function to sit on an object. |
| 65 | |
| 66 | Args: |
| 67 | object: Name of the object to sit on |
| 68 | **kwargs: Additional arguments that might be passed |
| 69 | """ |
| 70 | sittable_objects = {"chair", "bench", "stool", "couch", "sofa", "bed"} |
| 71 | |
| 72 | if not object: |
| 73 | return FunctionResultStatus.FAILED, "No object specified", {} |
| 74 | |
| 75 | if object.lower() in sittable_objects: |
| 76 | return FunctionResultStatus.DONE, f"Successfully sat on the {object}", {} |
| 77 | |
| 78 | return FunctionResultStatus.FAILED, f"Cannot sit on {object} - not a sittable object", {} |
| 79 | |
| 80 | |
| 81 | # Action space with all executables |
nothing calls this directly
no outgoing calls
no test coverage detected