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

Function throw_object

examples/game/test_worker.py:49–59  ·  view source on GitHub ↗

Function to throw an object. Args: object: Name of the object to throw **kwargs: Additional arguments that might be passed

(object: str, **kwargs)

Source from the content-addressed store, hash-verified

47
48
49def throw_object(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]:
50 """
51 Function to throw an object.
52
53 Args:
54 object: Name of the object to throw
55 **kwargs: Additional arguments that might be passed
56 """
57 if object:
58 return FunctionResultStatus.DONE, f"Successfully threw the {object}", {}
59 return FunctionResultStatus.FAILED, "No object specified", {}
60
61
62def sit_on_object(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected