Skip to content

Fix typos #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/game/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/game/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/virtuals_sdk/game/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/virtuals_sdk/game/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down