diff --git a/examples/game/test_agent.py b/examples/game/test_agent.py index d2429ea..202f634 100644 --- a/examples/game/test_agent.py +++ b/examples/game/test_agent.py @@ -14,7 +14,7 @@ def get_worker_state_fn(function_result: FunctionResult, current_state: dict) -> This function will get called at every step of the workers execution to form the agent's state. It will take as input the function result from the previous step. """ - # dict containing info about the function result as implemented in the exectuable + # dict containing info about the function result as implemented in the executable info = function_result.info # example of fixed state (function result info is not used to change state) - the first state placed here is the initial state @@ -32,7 +32,7 @@ def get_worker_state_fn(function_result: FunctionResult, current_state: dict) -> # at the first step, initialise the state with just the init state new_state = init_state else: - # do something wiht the current state input and the function result info + # do something with the current state input and the function result info new_state = init_state # this is just an example where the state is static return new_state @@ -58,7 +58,7 @@ def get_agent_state_fn(function_result: FunctionResult, current_state: dict) -> # at the first step, initialise the state with just the init state new_state = init_state else: - # do something wiht the current state input and the function result info + # do something with the current state input and the function result info new_state = init_state # this is just an example where the state is static return new_state diff --git a/examples/game/test_worker.py b/examples/game/test_worker.py index d8dd772..ac9ae1c 100644 --- a/examples/game/test_worker.py +++ b/examples/game/test_worker.py @@ -10,7 +10,7 @@ def get_state_fn(function_result: FunctionResult, current_state: dict) -> dict: This function will get called at every step of the agent's execution to form the agent's state. It will take as input the function result from the previous step. """ - # dict containing info about the function result as implemented in the exectuable + # dict containing info about the function result as implemented in the executable info = function_result.info # example of fixed state (function result info is not used to change state) - the first state placed here is the initial state @@ -28,7 +28,7 @@ def get_state_fn(function_result: FunctionResult, current_state: dict) -> dict: # at the first step, initialise the state with just the init state new_state = init_state else: - # do something wiht the current state input and the function result info + # do something with the current state input and the function result info new_state = init_state # this is just an example where the state is static return new_state diff --git a/src/virtuals_sdk/game/README.md b/src/virtuals_sdk/game/README.md index 86973da..3394494 100644 --- a/src/virtuals_sdk/game/README.md +++ b/src/virtuals_sdk/game/README.md @@ -4,7 +4,7 @@ This library enables the creation of AI agents, in which actions are defined by the creator/developer. These agents can be used: - Worker Mode: to autonomously execute tasks through interaction with the agent. User interaction and tasks is required for the agent to execute tasks. For example, "Bring me some fruits and then go sit on the chair". -- Agent Mode: to autonomously function in an open-ended manner by just providing a general goal. The agent independently and continously decides tasks for itself in an open-ended manner, and attempts to complete them. +- Agent Mode: to autonomously function in an open-ended manner by just providing a general goal. The agent independently and continuously decides tasks for itself in an open-ended manner, and attempts to complete them. ## Core Features diff --git a/src/virtuals_sdk/game/agent.py b/src/virtuals_sdk/game/agent.py index afe0efe..72fb515 100644 --- a/src/virtuals_sdk/game/agent.py +++ b/src/virtuals_sdk/game/agent.py @@ -224,7 +224,7 @@ def step(self): self.worker_states[self.current_worker_id] = updated_worker_state elif action_response.action_type == ActionType.WAIT: - print("Task ended completed or ended (not possible wiht current actions)") + print("Task ended completed or ended (not possible with current actions)") elif action_response.action_type == ActionType.GO_TO: if not action_response.action_args: