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

Function sit_on_object

examples/game/test_agent.py:94–110  ·  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

92
93
94def 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
112def throw_fruit(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]:
113 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected