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

Function throw_object

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

79
80
81def throw_object(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]:
82 """
83 Function to throw an object.
84
85 Args:
86 object: Name of the object to throw
87 **kwargs: Additional arguments that might be passed
88 """
89 if object:
90 return FunctionResultStatus.DONE, f"Successfully threw the {object}", {}
91 return FunctionResultStatus.FAILED, "No object specified", {}
92
93
94def 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