Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BAAI-Agents/Cradle
/ functions
Functions
1,182 in github.com/BAAI-Agents/Cradle
⨍
Functions
1,182
◇
Types & classes
130
↳
Endpoints
8
Method
maximize
Maximize the target window
cradle/gameio/gui_utils.py:200
Function
min_distance_from_center
(contour)
cradle/environment/rdr2/composite_skills/navigation.py:133
Method
minimize
Minimize the target window
cradle/gameio/gui_utils.py:184
Function
mount_horse
Needs to be close to the horse. Mounts the horse by pressing the "e" key.
cradle/environment/rdr2/atomic_skills/move.py:50
Function
mouse_confirm_item
Confirms the selection item by clicking the left mouse button once.
cradle/environment/rdr2/atomic_skills/trade_utils.py:44
Function
mouse_drag
Use the mouse to drag from a source position to a target position. The type of drag depends on the mouse button used. The mouse is moved to t
cradle/environment/feishu/atomic_skills/interact.py:63
Function
mouse_drag
Use the mouse to drag from a source position to a target position. The type of drag depends on the mouse button used. The mouse is moved to t
cradle/environment/software/atomic_skills/base.py:60
Function
mouse_drag
Use the mouse to drag from a source position to a target position. The type of drag depends on the mouse button used. The mouse is moved to t
cradle/environment/capcut/atomic_skills/interact.py:46
Function
mouse_drag
Use the mouse to drag from a source position to a target position. The type of drag depends on the mouse button used. The mouse is moved to t
cradle/environment/outlook/atomic_skills/interact.py:90
Method
mouse_drag
(self, x1, y1, x2, y2)
cradle/gameio/io_env.py:291
Function
mouse_drag_with_label
Drag from the source label id of bounding box to the target label id of bounding box. Parameters: - source_label_id: The numerical label
cradle/environment/capcut/composite_skills/aug_interact.py:41
Function
mouse_scroll_down
Scroll down a number of clicks using the mouse wheel. Down means both rolling the mouse wheel back and scrolling towards the bottom of the screen
cradle/environment/software/atomic_skills/base.py:83
Function
mouse_scroll_down
Scroll down a number of clicks using the mouse wheel. Down means both rolling the mouse wheel back and scrolling towards the bottom of the screen
cradle/environment/xiuxiu/atomic_skills/interact.py:122
Function
mouse_scroll_up
Scroll up a number of clicks using the mouse wheel. Up means both rolling the mouse wheel forward and scrolling towards the top of the screen.
cradle/environment/software/atomic_skills/base.py:95
Function
mouse_select_item
Move the mouse to a specific location to select the item in the game. Parameters: - x: The normalized abscissa of the pixel. - y: The
cradle/environment/rdr2/atomic_skills/trade_utils.py:33
Function
mouse_use_tool
Adjusts the player's orientation towards the specified position (x, y) on the screen, then simulates the action of using or interacting with tool
cradle/environment/stardew/atomic_skills/basic_skills.py:27
Function
move_mouse_to_position
Moves the mouse to the specified x, y corrdinates inside the application window. Parameters: - x: The normalized x-coordinate of the tar
cradle/environment/software/atomic_skills/base.py:13
Function
navigate_path
Navigates an existing waypoint path in the minimap. Parameters: - iterations: How many maximum calculation loops to navigate. Default va
cradle/environment/rdr2/composite_skills/navigation.py:24
Function
nc
(c)
docs/js/fontawesome.all.min.js:5
Method
new_debug
(message)
cradle/provider/base/base_provider.py:53
Method
new_error
(message)
cradle/provider/base/base_provider.py:80
Method
new_write
(message)
cradle/provider/base/base_provider.py:26
Method
num_tokens_from_messages
Return the number of tokens used by a list of messages. Borrowed from https://github.com/openai/openai-cookbook/blob/main/examples/How_to_coun
cradle/provider/llm/claude.py:282
Method
num_tokens_from_messages
Return the number of tokens used by a list of messages. Borrowed from https://github.com/openai/openai-cookbook/blob/main/examples/How_to_coun
cradle/provider/llm/openai.py:438
Method
num_tokens_from_messages
Return the number of tokens used by a list of messages. Borrowed from https://github.com/openai/openai-cookbook/blob/main/examples/How_to_coun
cradle/provider/llm/restful_claude.py:272
Function
offset
(element)
docs/js/bulma-carousel.js:123
Function
open_chatbox
Opening the chatbox.
cradle/environment/stardew/atomic_skills/basic_skills.py:100
Function
open_electricity_menu
The function to open the electricity options in the lower menu bar for further determination of which types of power facility to build.
cradle/environment/skylines/atomic_skills/basic_skills.py:22
Function
open_index
Opens the map index by pressing the "space" key, after the map is open.
cradle/environment/rdr2/atomic_skills/map.py:58
Function
open_journal
Opening the journal.
cradle/environment/stardew/atomic_skills/basic_skills.py:72
Function
open_map
Opens the in-game map.
cradle/environment/rdr2/atomic_skills/map.py:13
Function
open_map
Opening the map.
cradle/environment/stardew/atomic_skills/basic_skills.py:86
Function
open_menu
Opening the menu.
cradle/environment/stardew/atomic_skills/basic_skills.py:58
Function
open_roads_menu
The function to open the roads options in the lower menu bar for further determination of which types of roads to build.
cradle/environment/skylines/atomic_skills/basic_skills.py:13
Function
open_shop
The function to open the dealer's shop to start dealing for today. This should only be used at the interface of day start, where there is a piece
cradle/environment/dealers/atomic_skills/basic_skills.py:100
Function
open_the_user_profile_menu
This function can be used to open the user profile menu to set the status.
cradle/environment/feishu/atomic_skills/interact.py:14
Function
open_water_sewage_menu
The function to open the water and sewage options in the lower menu bar for further determination of which types of water and sewage to build.
cradle/environment/skylines/atomic_skills/basic_skills.py:33
Function
open_zoning_menu
The function to open the zoning options in the lower menu bar for further determination of which types of zonings to build.
cradle/environment/skylines/atomic_skills/basic_skills.py:44
Function
outerHeight
(element)
docs/js/bulma-carousel.js:140
Function
outerWidth
(element)
docs/js/bulma-carousel.js:151
Function
parse_semi_formatted_json
(json_string)
cradle/utils/json_utils.py:81
Method
pause_game
Pause the game. Args: env_name: Environment name. ide_name: IDE name. Returns:
cradle/environment/ui_control.py:9
Method
pause_game
(self, env_name: str, ide_name: str)
cradle/environment/rdr2/ui_control.py:25
Method
pause_game
(self, env_name: str, ide_name: str)
cradle/environment/software/ui_control.py:18
Function
position
(element)
docs/js/bulma-carousel.js:162
Function
press_enter
Press the enter key.
cradle/environment/capcut/composite_skills/shortcut.py:108
Function
press_key
Pressing the selected key in the current situation. Parameters: - key: A keyboard key to be pressed. For example, press the 'enter' key.
cradle/environment/feishu/atomic_skills/interact.py:84
Function
press_key
Pressing the selected key in the current situation. Parameters: - key: A keyboard key to be pressed. For example, press the 'enter' key.
cradle/environment/chrome/atomic_skills/interact.py:31
Function
press_key
Pressing the selected key in the current situation. Parameters: - key: A keyboard key to be pressed. For example, press the 'enter' key.
cradle/environment/software/atomic_skills/base.py:107
Function
press_key
Pressing the selected key in the current situation. Parameters: - key: A keyboard key to be pressed. For example, press the 'enter' key.
cradle/environment/capcut/atomic_skills/interact.py:69
Function
press_key
Pressing the selected key in the current situation. Parameters: - key: A keyboard key to be pressed. For example, press the 'enter' key.
cradle/environment/outlook/atomic_skills/interact.py:14
Function
press_key
Pressing the selected key in the current situation. Parameters: - key: A keyboard key to be pressed. For example, press the 'enter' key.
cradle/environment/xiuxiu/atomic_skills/interact.py:33
Function
press_keyboard_shortcut
Presses a keyboard shortcut. For example, when pressing the shortcut or hotkey combination 'ctrl + P', 'ctr' and 'P' are pressed combined. P
cradle/environment/outlook/atomic_skills/interact.py:25
Function
press_keys_combined
Presses the keys in the list combined. For example, when pressing the shortcut or hotkey combination 'ctrl' + P. Parameters: - keys: Lis
cradle/environment/feishu/atomic_skills/interact.py:95
Function
press_keys_combined
Presses the keys in the list combined. For example, when pressing the shortcut or hotkey combination 'ctrl' + P. Parameters: - keys: Lis
cradle/environment/chrome/atomic_skills/interact.py:42
Function
press_keys_combined
Presses the keys in the list combined. For example, when pressing the shortcut or hotkey combination 'ctrl' + P. Parameters: - keys: Lis
cradle/environment/software/atomic_skills/base.py:143
Function
press_keys_combined
Presses the keys in the list combined. For example, when pressing the shortcut or hotkey combination 'ctrl, p'. Parameters: - keys: List
cradle/environment/capcut/atomic_skills/interact.py:80
Function
press_keys_combined
Presses the keys in the list combined. For example, when pressing the shortcut or hotkey combination 'ctrl' + P. Parameters: - keys: Lis
cradle/environment/xiuxiu/atomic_skills/interact.py:44
Method
process_masks_in_batches
(masks, batch_size=10)
cradle/provider/sam_provider.py:125
Function
process_string
(input_str)
log_processor.py:87
Function
product_details
Views detailed information about the product by pressing "space".
cradle/environment/rdr2/atomic_skills/buy.py:109
Function
purchase_from_shelf
Buys a product from the shelf by holding down the "r" key for a specified duration. Parameters: - duration: The duration for which the
cradle/environment/rdr2/atomic_skills/buy.py:169
Function
rc
(c)
docs/js/fontawesome.all.min.js:5
Method
recalculate_som_subarea
Recursive SOM process for large bounding boxes. Args: screenshot_path (str): The filename of the screenshot.
cradle/provider/sam_provider.py:69
Method
recent_search
Retrieve the recent k keys Args: recent_k: the number of results to return. **kwargs: Other keyword arguments that su
cradle/memory/basic_vector_memory.py:94
Method
register_available_skills
(self, candidates)
cradle/gameio/game_manager.py:126
Method
register_available_skills
(self, candidates:List[str])
cradle/environment/skill_registry.py:513
Function
register_environment
(name)
cradle/environment/environment_registry.py:3
Function
register_skill
(name)
cradle/environment/skill_registry.py:31
Function
register_skill
(name)
cradle/environment/feishu/skill_registry.py:15
Function
register_skill
(name)
cradle/environment/rdr2/skill_registry.py:15
Function
register_skill
(name)
cradle/environment/chrome/skill_registry.py:15
Function
register_skill
(name)
cradle/environment/skylines/skill_registry.py:15
Function
register_skill
(name)
cradle/environment/software/skill_registry.py:20
Function
register_skill
(name)
cradle/environment/dealers/skill_registry.py:16
Function
register_skill
(name)
cradle/environment/capcut/skill_registry.py:15
Function
register_skill
(name)
cradle/environment/stardew/skill_registry.py:15
Function
register_skill
(name)
cradle/environment/outlook/skill_registry.py:15
Function
register_skill
(name)
cradle/environment/xiuxiu/skill_registry.py:15
Function
reject_deal
The function to click on the cross mark to reject the deal on the confirmation dialog.
cradle/environment/dealers/atomic_skills/basic_skills.py:65
Function
release_key
Release the selected key in the current situation. Parameters: - key: A keyboard key to be released. For example, release the 'shift' ke
cradle/environment/software/atomic_skills/base.py:131
Function
removeClasses
(element, classes)
docs/js/bulma-carousel.js:102
Method
retrieve_skills
(self, query_task: str, skill_num: int, screen_type: str)
cradle/environment/skill_registry.py:482
Function
return_to_previous_page
Return to the previous page.
cradle/environment/chrome/atomic_skills/interact.py:66
Function
return_to_previous_page
Return to the previous page.
cradle/environment/xiuxiu/atomic_skills/interact.py:67
Method
run
(self, img_file, yellow_range=np.array([[140, 230, 230], [170, 255, 255]]),
cradle/provider/circle_detector.py:43
Method
run
(self, *args, data: Any, **kwargs)
cradle/provider/video/video_ocr_extractor.py:142
Method
save
Save the memory to the local file.
cradle/memory/local_memory.py:152
Method
save
Save the memory to the local file.
cradle/memory/short_term_memory.py:131
Method
save
Save the memory to the local file.
cradle/memory/basic_vector_memory.py:136
Method
save
Save FAISS index and index_to_key to disk.
cradle/memory/vector_store.py:54
Function
save_project
Save the current project.
cradle/environment/xiuxiu/atomic_skills/interact.py:87
Function
scroll_down_keyboard_for_info
Scrolls down in the catalog using the "down" arrow key.
cradle/environment/rdr2/atomic_skills/buy.py:125
Function
scroll_down_mouse_for_info
Scrolls down in the catalog using the mouse wheel down.
cradle/environment/rdr2/atomic_skills/buy.py:141
Function
scroll_up_keyboard_for_info
Scrolls up in the catalog using the "up" arrow key.
cradle/environment/rdr2/atomic_skills/buy.py:117
Function
scroll_up_mouse_for_info
Scrolls up in the catalog using the mouse wheel up.
cradle/environment/rdr2/atomic_skills/buy.py:133
Function
select_downside_product
This function simulates the action of selecting the product on the next downside of the current selected product. It uses the pydirectinput l
cradle/environment/rdr2/atomic_skills/trade_utils.py:71
Function
select_leftside_product
This function simulates the action of selecting the product on the next leftside of the current selected product. It uses the pydirectinput l
cradle/environment/rdr2/atomic_skills/trade_utils.py:80
Function
select_next_index_object
When the index is opened, moves to the next index selection by pressing the "down" arrow key. Items of interest may be out of view, so this s
cradle/environment/rdr2/atomic_skills/map.py:90
Function
select_next_product
This function simulates the action of selecting the next product of the current selected product. It uses the pydirectinput library to press
cradle/environment/rdr2/atomic_skills/trade_utils.py:98
← previous
next →
1,001–1,100 of 1,182, ranked by callers