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
↓ 2 callers
Function
_inherits
(subClass, superClass)
docs/js/bulma-carousel.js:481
↓ 2 callers
Method
_min_resolution_check
(self, env_window)
cradle/config/config.py:343
↓ 2 callers
Function
_mouse_coord_to_abs_win
(coord, width_or_height)
cradle/gameio/gui_utils.py:77
↓ 2 callers
Method
_multi_key_action
(self, keys, action, duration = 2)
cradle/gameio/io_env.py:398
↓ 2 callers
Function
_possibleConstructorReturn
(self, call)
docs/js/bulma-carousel.js:479
↓ 2 callers
Function
_theta_calculation
Calculates the adjusted theta value based on the configured mouse move factor. Parameters: - theta: The original theta value to be adjus
cradle/gameio/io_env.py:581
↓ 2 callers
Method
action_planning
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:791
↓ 2 callers
Method
add_embeddings
Add embeddings to the vectorstore. Args: keys: list of metadatas associated with the embedding. embeddings: Iterable
cradle/memory/vector_store.py:17
↓ 2 callers
Method
add_new_skill
(self, skill_code, overwrite = True)
cradle/gameio/game_manager.py:112
↓ 2 callers
Method
add_task_guidance
(self, task_description: str, long_horizon: bool)
cradle/provider/others/task_guidance.py:28
↓ 2 callers
Method
augment_image
(self, image)
cradle/provider/process/self_reflection.py:217
↓ 2 callers
Function
cal_real_turn_angle
(angle_degrees, is_upper)
cradle/environment/rdr2/composite_skills/navigation.py:236
↓ 2 callers
Method
calculate_som
Generate masks and bounding boxes for the given screenshot. Args: screenshot_path (str): Path and filename to the screen
cradle/provider/sam_provider.py:56
↓ 2 callers
Method
capture_screen
(self, frame_buffer: FrameBuffer)
cradle/provider/video/video_recorder.py:155
↓ 2 callers
Method
check_for_close_icon
Check if trying to click the app close icon
cradle/environment/software/ui_control.py:52
↓ 2 callers
Function
cl
(c)
docs/js/fontawesome.all.min.js:5
↓ 2 callers
Method
clear_frame_buffer
(self)
cradle/provider/video/video_recorder.py:137
↓ 2 callers
Function
click_at_position
Moves the mouse to the specified x, y corrdinates inside the application window and clicks at that position. Parameters: - x: The normal
cradle/environment/feishu/atomic_skills/interact.py:33
↓ 2 callers
Function
click_at_position
Moves the mouse to the specified x, y corrdinates inside the application window and clicks at that position. Parameters: - x: The normal
cradle/environment/xiuxiu/atomic_skills/interact.py:17
↓ 2 callers
Function
clip_minimap
(minimap_image_filename)
cradle/utils/image_utils.py:1206
↓ 2 callers
Method
convert_code_to_skill_info
(self, skill_code: str)
cradle/environment/skill_registry.py:264
↓ 2 callers
Method
convert_coordinates_to_text
(self, coordinates: Dict[str, Any])
cradle/provider/others/coordinates.py:24
↓ 2 callers
Function
dc
(c)
docs/js/fontawesome.all.min.js:5
↓ 2 callers
Function
draw_mouse_pointer_file
(img_path: str, x: int, y: int)
cradle/gameio/lifecycle/ui_control.py:227
↓ 2 callers
Function
el
(c)
docs/js/fontawesome.all.min.js:5
↓ 2 callers
Method
embed_with_retry
Use backoff to retry the embedding call.
cradle/provider/llm/openai.py:130
↓ 2 callers
Function
encode_image_binary
(image_binary, image_path=None)
cradle/utils/encoding_utils.py:39
↓ 2 callers
Function
exists_in_project_path
(path)
cradle/utils/file_utils.py:23
↓ 2 callers
Method
from_dict
(cls: Type[W], o: JSONObject)
cradle/environment/skill.py:33
↓ 2 callers
Function
gather_information_get_completion_parallel
(llm_provider, text_input_map, current_frame_path, time_stamp,
cradle/planner/rdr2_planner.py:26
↓ 2 callers
Function
gather_information_get_completion_parallel
(llm_provider, text_input_map, current_frame_path, time_stamp,
cradle/planner/stardew_planner.py:23
↓ 2 callers
Function
getProcessIDByWindowHandle
(window_handle)
cradle/utils/os_utils.py:27
↓ 2 callers
Function
getProcessNameByPID
(process_id)
cradle/utils/os_utils.py:19
↓ 2 callers
Method
get_canonical_url
(self, endpoint_url)
cradle/provider/llm/restful_claude_client.py:50
↓ 2 callers
Function
get_contour
(mask)
cradle/environment/rdr2/composite_skills/navigation.py:126
↓ 2 callers
Method
get_embedding
(self, skill_name, skill_doc)
cradle/environment/skill_registry.py:107
↓ 2 callers
Method
get_payload_hash
(self, payload, type='str')
cradle/provider/llm/restful_claude_client.py:75
↓ 2 callers
Method
get_task_guidance
(self, use_last = True)
cradle/provider/others/task_guidance.py:41
↓ 2 callers
Function
get_theta
The origin of the image coordinate system is usually located in the upper left corner of the image, with the x-axis to the right indicating a pos
cradle/environment/rdr2/composite_skills/go_to_icon.py:41
↓ 2 callers
Method
get_windows_by_config
(self)
cradle/gameio/io_env.py:577
↓ 2 callers
Function
go_home
Move the character enter the house. This function automates the action of moving the character to enter the house by navigating through the door.
cradle/environment/stardew/composite_skills/go_home.py:35
↓ 2 callers
Function
hash_text_sha256
(text: str)
cradle/utils/string_utils.py:6
↓ 2 callers
Function
i
(t)
docs/js/bulma-slider.min.js:1
↓ 2 callers
Method
information_gathering
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:773
↓ 2 callers
Method
init_provider
(self, provider_cfg )
cradle/provider/llm/restful_claude.py:75
↓ 2 callers
Function
isIFrame
(unknown)
docs/js/bulma-carousel.js:258
↓ 2 callers
Function
isNode
(unknown)
docs/js/bulma-carousel.js:249
↓ 2 callers
Method
is_env_paused
(self)
cradle/environment/skylines/ui_control.py:76
↓ 2 callers
Method
is_env_paused
(self)
cradle/environment/dealers/ui_control.py:75
↓ 2 callers
Method
is_env_paused
(self)
cradle/environment/stardew/ui_control.py:76
↓ 2 callers
Function
is_top_level_window
(window_handle: int)
cradle/gameio/gui_utils.py:506
↓ 2 callers
Function
keep_shooting_target
Keep shooting the 'detect_target' detected by object detector automatically.
cradle/environment/rdr2/composite_skills/auto_shoot.py:52
↓ 2 callers
Method
key_release
(self, key)
cradle/gameio/io_env.py:469
↓ 2 callers
Function
match_templates_images
Multi-scale template matching :param src_file_list: source image files :param base_template_file_list: template image files :param de
cradle/utils/template_matching.py:185
↓ 2 callers
Function
mouse_button_down
(button)
cradle/gameio/gui_utils.py:322
↓ 2 callers
Function
mouse_button_up
(button)
cradle/gameio/gui_utils.py:329
↓ 2 callers
Method
mouse_release
(self, button)
cradle/gameio/io_env.py:332
↓ 2 callers
Method
mouse_scroll
(self, direction, distance)
cradle/gameio/io_env.py:361
↓ 2 callers
Function
move_and_action_like
Helper function to move the character back to the initial position after completing the action across the specified area. This function calculate
cradle/environment/stardew/composite_skills/farm.py:61
↓ 2 callers
Function
o
(t)
docs/js/bulma-carousel.min.js:1
↓ 2 callers
Function
ql
(c)
docs/js/fontawesome.all.min.js:5
↓ 2 callers
Method
register_skill_from_code
Register the skill function from the code string. Args: skill_code: the code of skill. overwrite: the flag indicates
cradle/environment/skill_registry.py:362
↓ 2 callers
Function
resize_image
Resize the given image. Args: image (Image.Image | str | np.ndarray): The image to be resized. resize_ratio (float): The ratio to
cradle/utils/image_utils.py:275
↓ 2 callers
Method
run
(self, *args, image, **kwargs)
cradle/provider/augment/augment.py:41
↓ 2 callers
Function
sc
(l,h)
docs/js/fontawesome.all.min.js:5
↓ 2 callers
Function
selection_box_identifier
(image_path, red_box_region)
cradle/utils/template_matching.py:233
↓ 2 callers
Method
self_reflection
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:811
↓ 2 callers
Function
setInterpolationImage
(i)
docs/js/index.js:15
↓ 2 callers
Method
set_fixed_seed
Set the fixed seed values. By default, used the default values. Please avoid using different values.
cradle/config/config.py:275
↓ 2 callers
Function
shoot
Shoot the weapon at a specific location in view. Parameters: - x: The normalized abscissa of the pixel. - y: The normalized ordinate
cradle/environment/rdr2/atomic_skills/combat.py:40
↓ 2 callers
Function
slope_to_angle
(x1, y1, x2, y2)
cradle/environment/rdr2/composite_skills/navigation.py:162
↓ 2 callers
Method
store_skills_to_file
(self, file_path: str, skills: Dict[str, Skill])
cradle/environment/skill_registry.py:533
↓ 2 callers
Function
take_screenshot
(tid: float, screen_region: tuple[int, int, int, int] = None, draw_axi
cradle/gameio/lifecycle/ui_control.py:165
↓ 2 callers
Method
task_inference
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:821
↓ 2 callers
Function
tl
(c)
docs/js/fontawesome.all.min.js:5
↓ 2 callers
Method
to_dict
(self)
cradle/environment/skill.py:47
↓ 2 callers
Method
to_images
(self, data: Any)
cradle/provider/video/video_ocr_extractor.py:33
↓ 2 callers
Function
ul
(c)
docs/js/fontawesome.all.min.js:5
↓ 2 callers
Method
unpause_game
(self, *args, env_name=config.env_name, ide_nam
cradle/gameio/game_manager.py:54
↓ 2 callers
Method
unpause_game
(self, env_name: str, ide_name: str)
cradle/environment/rdr2/ui_control.py:38
↓ 2 callers
Function
vl
()
docs/js/fontawesome.all.min.js:5
↓ 2 callers
Function
zl
(h,c)
docs/js/fontawesome.all.min.js:5
↓ 1 callers
Function
Ml
(c)
docs/js/fontawesome.all.min.js:5
↓ 1 callers
Function
Nc
(c)
docs/js/fontawesome.all.min.js:5
↓ 1 callers
Method
__init__
(self, input_map: Dict = None, template: Dict = None, llm_p
cradle/planner/stardew_planner.py:775
↓ 1 callers
Method
__init__
(self)
cradle/utils/object_utils.py:64
↓ 1 callers
Method
__init__
(self, *args, gm, task_description="", **k
cradle/provider/module/skill_curation.py:18
↓ 1 callers
Method
__init__
(self, *args, **kwargs)
cradle/provider/base/base_provider.py:15
↓ 1 callers
Method
__init__
(self)
cradle/provider/video/video_recorder.py:21
↓ 1 callers
Method
_cal_new_icon_name_region
(self)
cradle/config/config.py:385
↓ 1 callers
Method
_cal_new_icon_region
(self)
cradle/config/config.py:377
↓ 1 callers
Method
_cal_toolbar_region
(self)
cradle/config/config.py:369
↓ 1 callers
Method
_calc_minimap_region
(self, screen_region)
cradle/config/config.py:365
↓ 1 callers
Method
_check_ide_window_info
(self)
cradle/config/config.py:297
↓ 1 callers
Method
_check_success
(self, *args, data, **kwargs)
cradle/planner/planner.py:391
↓ 1 callers
Method
_check_success
(self, *args, data, **kwargs)
cradle/planner/rdr2_planner.py:428
↓ 1 callers
Method
_check_success
(self, *args, data, **kwargs)
cradle/planner/stardew_planner.py:413
↓ 1 callers
Method
_configure_root_logger
(self)
cradle/log/logger.py:78
↓ 1 callers
Function
_defineProperty
(obj, key, value)
docs/js/bulma-carousel.js:475
↓ 1 callers
Method
_drawBoxesOnRGB
Return a copy of the image with predicted template locations as bounding boxes overlaid on the image The name of the template can als
cradle/utils/icon_utils.py:25
← previous
next →
201–300 of 1,182, ranked by callers