MCPcopy Create free account
hub / github.com/Virtual-Protocol/virtuals-python / sit_on_object

Function sit_on_object

examples/game/test_worker.py:62–78  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

60
61
62def 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected