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

Function take_object

examples/game/test_worker.py:36–46  ·  view source on GitHub ↗

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

(object: str, **kwargs)

Source from the content-addressed store, hash-verified

34 return new_state
35
36def take_object(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]:
37 """
38 Function to take an object from the environment.
39
40 Args:
41 object: Name of the object to take
42 **kwargs: Additional arguments that might be passed
43 """
44 if object:
45 return FunctionResultStatus.DONE, f"Successfully took the {object}", {}
46 return FunctionResultStatus.FAILED, "No object specified", {}
47
48
49def throw_object(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected