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)
| 92 | |
| 93 | |
| 94 | def sit_on_object(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]: |
| 95 | """ |
| 96 | Function to sit on an object. |
| 97 | |
| 98 | Args: |
| 99 | object: Name of the object to sit on |
| 100 | **kwargs: Additional arguments that might be passed |
| 101 | """ |
| 102 | sittable_objects = {"chair", "bench", "stool", "couch", "sofa", "bed"} |
| 103 | |
| 104 | if not object: |
| 105 | return FunctionResultStatus.FAILED, "No object specified", {} |
| 106 | |
| 107 | if object.lower() in sittable_objects: |
| 108 | return FunctionResultStatus.DONE, f"Successfully sat on the {object}", {} |
| 109 | |
| 110 | return FunctionResultStatus.FAILED, f"Cannot sit on {object} - not a sittable object", {} |
| 111 | |
| 112 | def throw_fruit(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]: |
| 113 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected