From f0a6ce2e2eabe4f32d50bb5a4b9280b430240c97 Mon Sep 17 00:00:00 2001 From: oliveredget <188809800+oliveredget@users.noreply.github.com> Date: Sun, 12 Jan 2025 15:22:35 +0800 Subject: [PATCH 1/4] fix typos --- examples/game/test_agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From f783c1b01bb9654b247ff8f224b3f3fc4e1f3860 Mon Sep 17 00:00:00 2001 From: oliveredget <188809800+oliveredget@users.noreply.github.com> Date: Sun, 12 Jan 2025 15:22:40 +0800 Subject: [PATCH 2/4] fix typos --- examples/game/test_worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 8076bce7c09dfe283635a0ff542cb826a7447693 Mon Sep 17 00:00:00 2001 From: oliveredget <188809800+oliveredget@users.noreply.github.com> Date: Sun, 12 Jan 2025 15:22:49 +0800 Subject: [PATCH 3/4] fix typos --- src/virtuals_sdk/game/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From d0c9ea4912c6040770a8825d667a8eb70a3a1a24 Mon Sep 17 00:00:00 2001 From: oliveredget <188809800+oliveredget@users.noreply.github.com> Date: Sun, 12 Jan 2025 15:22:54 +0800 Subject: [PATCH 4/4] fix typos --- src/virtuals_sdk/game/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: