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
↓ 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/provider/icon_replacer.py:26
↓ 1 callers
Function
_extract_image_hashes
(text)
log_processor.py:71
↓ 1 callers
Method
_extract_keys_from_template
(self)
cradle/provider/base/base_provider.py:109
↓ 1 callers
Function
_get_active_window
()
cradle/gameio/gui_utils.py:524
↓ 1 callers
Method
_get_azure_deployment_id_for_model
(self, model_label)
cradle/provider/llm/openai.py:486
↓ 1 callers
Method
_get_len_safe_embeddings
( self, texts: List[str], )
cradle/provider/llm/openai.py:153
↓ 1 callers
Method
_get_mtm_match
(self, image: np.ndarray, template: np.ndarray, template_name)
cradle/utils/icon_utils.py:77
↓ 1 callers
Method
_get_mtm_match
(self, image: np.ndarray, template: np.ndarray, template_name)
cradle/provider/icon_replacer.py:78
↓ 1 callers
Function
_inherits
(subClass, superClass)
docs/js/bulma-slider.js:94
↓ 1 callers
Method
_init_inputs
(self)
cradle/planner/planner.py:735
↓ 1 callers
Method
_init_inputs
(self)
cradle/planner/rdr2_planner.py:785
↓ 1 callers
Method
_init_inputs
(self)
cradle/planner/stardew_planner.py:909
↓ 1 callers
Method
_init_templates
(self)
cradle/planner/planner.py:754
↓ 1 callers
Method
_init_templates
(self)
cradle/planner/rdr2_planner.py:804
↓ 1 callers
Method
_init_templates
(self)
cradle/planner/stardew_planner.py:925
↓ 1 callers
Function
_is_line_key_candidate
(line: str)
cradle/utils/json_utils.py:95
↓ 1 callers
Method
_merge_messages
Merge messages with the same role into a single message
cradle/provider/llm/claude.py:517
↓ 1 callers
Method
_merge_messages
Merge messages with the same role into a single message
cradle/provider/llm/restful_claude.py:506
↓ 1 callers
Method
_parse_config
Parse the config object
cradle/provider/llm/claude.py:81
↓ 1 callers
Method
_parse_config
Parse the config object
cradle/provider/llm/openai.py:82
↓ 1 callers
Method
_parse_config
Parse the config object
cradle/provider/llm/restful_claude.py:79
↓ 1 callers
Function
_possibleConstructorReturn
(self, call)
docs/js/bulma-slider.js:92
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:387
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:468
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:524
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:580
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:638
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/rdr2_planner.py:424
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/rdr2_planner.py:535
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/rdr2_planner.py:591
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/rdr2_planner.py:647
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/rdr2_planner.py:705
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/stardew_planner.py:409
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/stardew_planner.py:658
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/stardew_planner.py:713
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/stardew_planner.py:769
↓ 1 callers
Method
_post
(self, *args, data: Dict[str, Any] = None, **kwargs)
cradle/planner/stardew_planner.py:828
↓ 1 callers
Method
_postprocess
(self, processed_response: Dict[str, Any], **kwargs)
cradle/provider/others/coordinates.py:128
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:169
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:424
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:484
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:540
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/planner.py:597
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/rdr2_planner.py:208
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/rdr2_planner.py:491
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/rdr2_planner.py:551
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/rdr2_planner.py:607
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/rdr2_planner.py:664
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/stardew_planner.py:212
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/stardew_planner.py:614
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/stardew_planner.py:673
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/stardew_planner.py:729
↓ 1 callers
Method
_pre
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/stardew_planner.py:786
↓ 1 callers
Method
_preprocess
(self, params: Dict[str, Any], gm: Any = None, init = False, **kwargs)
cradle/provider/others/coordinates.py:85
↓ 1 callers
Method
_replace_icon
(self, extracted_frame_paths)
cradle/planner/planner.py:403
↓ 1 callers
Method
_replace_icon
(self, extracted_frame_paths)
cradle/planner/rdr2_planner.py:440
↓ 1 callers
Method
_replace_icon
(self, extracted_frame_paths)
cradle/planner/stardew_planner.py:425
↓ 1 callers
Function
_replacer
(text, encoded_images, image_paths, work_dir)
log_processor.py:36
↓ 1 callers
Function
_safe_list_get
(list, idx, key = None, default = None)
cradle/gameio/io_env.py:591
↓ 1 callers
Method
_set_dirs
Setup directories needed for one system run.
cradle/config/config.py:287
↓ 1 callers
Method
_set_env_window_info
(self)
cradle/config/config.py:304
↓ 1 callers
Method
_set_latest_memory_path
(self)
cradle/config/config.py:356
↓ 1 callers
Method
_show
(self, image, window_name='screen',show=True,save='')
cradle/utils/icon_utils.py:90
↓ 1 callers
Method
_show
(self, image, window_name='screen',show=True,save='')
cradle/provider/icon_replacer.py:91
↓ 1 callers
Function
a
(t)
docs/js/bulma-carousel.min.js:1
↓ 1 callers
Method
add_coordinates
(self, raw_coordinates: Dict[str, Any], add_name: str = "",
cradle/provider/others/coordinates.py:52
↓ 1 callers
Method
add_frame
(self, frame_id, frame)
cradle/provider/video/video_recorder.py:26
↓ 1 callers
Method
add_recent_history
Add recent info to memory.
cradle/memory/local_memory.py:78
↓ 1 callers
Method
add_summarization
(self, hidden_state: str)
cradle/memory/base.py:74
↓ 1 callers
Function
aim
Aim the weapon in the game.
cradle/environment/rdr2/atomic_skills/combat.py:10
↓ 1 callers
Method
assemble_prompt_paragraph
(self, template_str: str = None, params: Dict[str, Any] = None)
cradle/provider/llm/claude.py:549
↓ 1 callers
Method
assemble_prompt_paragraph
(self, template_str: str = None, params: Dict[str, Any] = None)
cradle/provider/llm/openai.py:691
↓ 1 callers
Method
assemble_prompt_paragraph
(self, template_str: str = None, params: Dict[str, Any] = None)
cradle/provider/llm/restful_claude.py:538
↓ 1 callers
Method
assemble_prompt_tripartite
A tripartite prompt is a message with the following structure: <system message> <user message part 1 before image introducti
cradle/provider/llm/claude.py:330
↓ 1 callers
Method
assemble_prompt_tripartite
A tripartite prompt is a message with the following structure: <system message> <user message part 1 before image introducti
cradle/provider/llm/openai.py:490
↓ 1 callers
Method
assemble_prompt_tripartite
A tripartite prompt is a message with the following structure: <system message> <user message part 1 before image introductio
cradle/provider/llm/restful_claude.py:320
↓ 1 callers
Method
authorize
(self, payload, payload_hash=None, stream=False)
cradle/provider/llm/restful_claude_client.py:128
↓ 1 callers
Method
calc_and_plot_som_results
(self, screenshot_path: str)
cradle/provider/sam_provider.py:167
↓ 1 callers
Function
calculate_bounding_boxes
Calculate bounding boxes for each mask in the list separately. Args: masks: A list of numpy.ndarrays, each representing a mask.
cradle/utils/image_utils.py:534
↓ 1 callers
Function
calculate_centroid
Calculate the centroid of a bounding box. Args: bbox (dict): The bounding box dictionary with 'top', 'left', 'height', and 'width' keys.
cradle/utils/image_utils.py:572
↓ 1 callers
Function
calculate_image_diff
(path_1, path_2)
cradle/utils/image_utils.py:207
↓ 1 callers
Function
calculate_iou
(bbox1, bbox2)
cradle/utils/image_utils.py:767
↓ 1 callers
Function
calculate_pixel_diff
(path_1, path_2)
cradle/utils/image_utils.py:270
↓ 1 callers
Function
calculate_pixel_diff_with_diffimage_path
(output_path)
cradle/utils/image_utils.py:255
↓ 1 callers
Function
calculate_turn_angle
(tid, debug = False, show_image = False)
cradle/environment/rdr2/composite_skills/navigation.py:98
↓ 1 callers
Function
check_active_window
()
cradle/gameio/lifecycle/ui_control.py:81
↓ 1 callers
Method
check_active_window
(self)
cradle/gameio/game_manager.py:81
↓ 1 callers
Method
check_for_target_icons
(self)
cradle/provider/sam_provider.py:218
↓ 1 callers
Method
check_held_keys
(self, keys)
cradle/gameio/io_env.py:147
↓ 1 callers
Method
check_init_model
(self, resolution_ratio)
cradle/provider/circle_detector.py:22
↓ 1 callers
Function
check_json
(json_string)
cradle/utils/json_utils.py:57
↓ 1 callers
Function
check_window_conditions
(env_window: TargetWindow)
cradle/gameio/gui_utils.py:422
↓ 1 callers
Method
clear
(self)
cradle/provider/video/video_recorder.py:58
↓ 1 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/chrome/atomic_skills/interact.py:14
↓ 1 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/software/atomic_skills/base.py:27
↓ 1 callers
Method
construct_authorization_headers
(self, credential_scope, signature)
cradle/provider/llm/restful_claude_client.py:117
↓ 1 callers
Method
construct_canonical_headers
(self, time)
cradle/provider/llm/restful_claude_client.py:70
↓ 1 callers
Method
construct_canonical_request
(self, canonical_uri, canonical_headers, payload_hash)
cradle/provider/llm/restful_claude_client.py:85
↓ 1 callers
Method
construct_signature_key
(self, key, date_stamp, region_name, service_name)
cradle/provider/llm/restful_claude_client.py:62
↓ 1 callers
Function
contains_punctuation
(s: str)
cradle/utils/string_utils.py:31
← previous
next →
301–400 of 1,182, ranked by callers