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

Function take_object

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

65
66
67def take_object(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]:
68 """
69 Function to take an object from the environment.
70
71 Args:
72 object: Name of the object to take
73 **kwargs: Additional arguments that might be passed
74 """
75
76 if object:
77 return FunctionResultStatus.DONE, f"Successfully took the {object}", {}
78 return FunctionResultStatus.FAILED, "No object specified", {}
79
80
81def throw_object(object: str, **kwargs) -> Tuple[FunctionResultStatus, str, dict]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected