MCPcopy Create free account

hub / github.com/BAAI-Agents/Cradle / functions

Functions1,182 in github.com/BAAI-Agents/Cradle

Method_generate_response_with_retry
Send a request to the OpenAI API.
cradle/provider/llm/openai.py:310
Method_generate_response_with_retry
( messages: List[Dict[str, str]], model: str, temperature: float,
cradle/provider/llm/restful_claude.py:151
Method_generate_response_with_retry_async
( messages: List[Dict[str, str]], model: str, temperature: flo
cradle/provider/llm/claude.py:236
Method_generate_response_with_retry_async
Send a request to the OpenAI API.
cradle/provider/llm/openai.py:384
Method_generate_response_with_retry_async
( messages: List[Dict[str, str]], model: str, temperature: flo
cradle/provider/llm/restful_claude.py:226
Functionaccept_deal
The function to click on the check mark to accept the deal on the confirmation dialog.
cradle/environment/dealers/atomic_skills/basic_skills.py:56
Methodaction_planning
generate the next skill :param args: :param kwargs: :return:
cradle/planner/base.py:38
Methodaction_planning
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/rdr2_planner.py:841
Methodaction_planning
(self, *args, input: Dict[str, Any] = None, **kwargs)
cradle/planner/stardew_planner.py:959
Methodadd
Add data to memory. Args: messages: the messages of the conversation input. response: the response of the language mo
cradle/memory/short_term_memory.py:69
Methodadd
Add data to memory. Args: data: the mapping from unique name (id) to text/image.
cradle/memory/basic_vector_memory.py:40
FunctionaddClasses
(element, classes)
docs/js/bulma-carousel.js:95
Functionadd_mark
Marks the current mouse position on the map by pressing "z". A red message indicating the mark will appear on the map. Clicks the Cancel
cradle/environment/rdr2/atomic_skills/map.py:26
Methodadd_recent_history
( self, key: str, info: Any, )
cradle/memory/base.py:56
Methodadd_summarization
(self, summary: str)
cradle/memory/local_memory.py:115
Methodadd_task_guidance
(self, task_description: str, long_horizon: bool)
cradle/memory/local_memory.py:123
Functionadd_waypoint
Creates a waypoint at the item selected in the opened map index, by pressing "enter". Waypoint creation displays the path to the target locat
cradle/environment/rdr2/atomic_skills/map.py:36
Methodassemble_prompt
(self, template_str: str = None, params: Dict[str, Any] = None)
cradle/provider/llm/openai.py:695
Methodassemble_prompt
(self, template_str: str = None, params: Dict[str, Any] = None)
cradle/provider/llm/restful_claude.py:542
Methodassemble_prompt
Combine parametes in the appropriate way for the provider to use.
cradle/provider/base/base_llm.py:43
Functionbl
(c)
docs/js/fontawesome.all.min.js:5
Functionbrowse_catalogue
Opens the catalog by pressing the "e" key for a specified duration. Note: it must run the shopkeeper_interaction function before running this
cradle/environment/rdr2/atomic_skills/buy.py:27
Functionbrowse_shelf
Opens the context menu on a shelf by holding down the right mouse button for a specified duration. Parameters: - duration: The duration
cradle/environment/rdr2/atomic_skills/buy.py:180
FunctionbulmaCarousel
(selector)
docs/js/bulma-carousel.js:504
FunctionbulmaSlider
(selector)
docs/js/bulma-slider.js:105
Functionbuy_item
Buy items in Pierre's store. Note: This function only takes effect when the character is standing in front of the counter. Parameter
cradle/environment/stardew/composite_skills/buy_item.py:25
Functionbuy_product
Pressing "enter" purchases the selected product.
cradle/environment/rdr2/atomic_skills/buy.py:85
Functioncamelize
(str)
docs/js/bulma-carousel.js:1018
Functioncancel_placement
The function to cancel the placement of the object after the try_place_[object] function.
cradle/environment/skylines/atomic_skills/basic_skills.py:384
Functioncancel_shopkeeper_interaction
Cancels the interaction with the shopkeeper by releasing the right mouse button.
cradle/environment/rdr2/atomic_skills/trade_utils.py:23
Functioncancel_zoom
Releases the right mouse button to exit zoom.
cradle/environment/rdr2/atomic_skills/buy.py:19
Methodcheck_param_description
(skill)
cradle/environment/skill_registry.py:384
Methodcheck_protection_conflict
(skill)
cradle/environment/skill_registry.py:398
Functionclick_attachment_button
Click the Attachment button in a chat session.
cradle/environment/feishu/atomic_skills/interact.py:24
Functionclick_on_label
Moves the mouse to the position of the specified box id inside the application window and clicks. Parameters: - label: The numerical lab
cradle/environment/feishu/composite_skills/aug_interact.py:13
Functionclick_on_label
Moves the mouse to the position of the specified box id inside the application window and clicks. Parameters: - label_id: The numerical
cradle/environment/chrome/composite_skills/aug_interact.py:13
Functionclick_on_label
Moves the mouse to the position of the specified box id inside the application window and clicks. Parameters: - label_id: The numerical
cradle/environment/capcut/composite_skills/aug_interact.py:13
Functionclick_on_label
Moves the mouse to the position of the specified box id inside the application window and clicks. Parameters: - label_id: The numerical
cradle/environment/outlook/composite_skills/aug_interact.py:14
Functionclick_on_label
Moves the mouse to the position of the specified box id inside the application window and clicks. Parameters: - label_id: The numerical
cradle/environment/xiuxiu/composite_skills/aug_interact.py:13
Methodclip_check_horizonal_angle
(self, theta)
cradle/gameio/io_env.py:347
Functionclose_chatbox
Closing the chatbox.
cradle/environment/stardew/atomic_skills/basic_skills.py:107
Functionclose_description_page
The function to close a description page showing information about the item details, daily stats, or the traits of the buyer or seller.
cradle/environment/dealers/atomic_skills/basic_skills.py:21
Functionclose_index
Closes the game index by pressing the "space" key.
cradle/environment/rdr2/atomic_skills/map.py:71
Functionclose_journal
Closing the journal.
cradle/environment/stardew/atomic_skills/basic_skills.py:79
Functionclose_map
Closes the in-game map by pressing "esc".
cradle/environment/rdr2/atomic_skills/map.py:48
Functionclose_map
Closing the map.
cradle/environment/stardew/atomic_skills/basic_skills.py:93
Functionclose_menu
Closing the menu.
cradle/environment/stardew/atomic_skills/basic_skills.py:65
Functionclose_window
Close the current window.
cradle/environment/capcut/composite_skills/shortcut.py:118
Functionconfirm_placement
The function to confirm the placement and build the object after the try_place_[object] function.
cradle/environment/skylines/atomic_skills/basic_skills.py:371
Functionconfirm_selection
Confirm the selected item in the menu.
cradle/environment/rdr2/atomic_skills/buy.py:61
Functioncontains_regex_characters
(s: str)
cradle/utils/string_utils.py:11
Methodconvert_expression_to_skill
(self, expression: str = "open_map()")
cradle/environment/skill_registry.py:206
Methodconvert_str_to_func
(self, skill_name, skill_local)
cradle/environment/skill_registry.py:527
Methodcreate
(self, messages, system, temperature=1.0, max_toke
cradle/provider/llm/restful_claude_client.py:154
Methodcreate_completion
Create a chat completion using the OpenAI API Supports both GPT-4 and GPT-4V). Example Usage: image_path = "path_to_your_ima
cradle/provider/llm/openai.py:256
Methodcreate_completion
Create a chat completion using the OpenAI API Supports both GPT-4 and GPT-4V). Example Usage: image_path = "path_to_your_image
cradle/provider/llm/restful_claude.py:102
Methodcreate_completion
Create a completion from messages in text (and potentially also encoded images).
cradle/provider/base/base_llm.py:16
Methodcreate_completion_async
( self, messages: List[Dict[str, str]], model: str | None = None,
cradle/provider/llm/openai.py:357
Methodcreate_completion_async
( self, messages: List[Dict[str, str]], model: str | None = None,
cradle/provider/llm/restful_claude.py:202
Methodcreate_completion_async
Create a completion from messages in text (and potentially also encoded images).
cradle/provider/base/base_llm.py:27
Functioncreate_new_project
Create a new project.
cradle/environment/capcut/composite_skills/shortcut.py:84
Methodcritical
( self, message, title="" )
cradle/log/logger.py:127
Functioncss
(element, obj)
docs/js/bulma-carousel.js:169
Methoddeactivate
Deactivate the target window
cradle/gameio/gui_utils.py:153
Functiondecorator
(skill)
cradle/environment/skill_registry.py:32
Functiondecorator
(env)
cradle/environment/environment_registry.py:4
Functiondecorator
(skill)
cradle/environment/feishu/skill_registry.py:16
Functiondecorator
(skill)
cradle/environment/rdr2/skill_registry.py:16
Functiondecorator
(skill)
cradle/environment/chrome/skill_registry.py:16
Functiondecorator
(skill)
cradle/environment/skylines/skill_registry.py:16
Functiondecorator
(skill)
cradle/environment/software/skill_registry.py:21
Functiondecorator
(skill)
cradle/environment/dealers/skill_registry.py:17
Functiondecorator
(skill)
cradle/environment/capcut/skill_registry.py:16
Functiondecorator
(skill)
cradle/environment/stardew/skill_registry.py:16
Functiondecorator
(skill)
cradle/environment/outlook/skill_registry.py:16
Functiondecorator
(skill)
cradle/environment/xiuxiu/skill_registry.py:16
Functiondefer
()
docs/js/bulma-carousel.js:1005
Functiondelete_left
Delete the contents before the timestamp/position in the media timeline.
cradle/environment/capcut/composite_skills/shortcut.py:24
Functiondelete_right
Delete the right of choosen media.
cradle/environment/capcut/composite_skills/shortcut.py:14
Methoddelete_skill
(self, skill_name)
cradle/gameio/game_manager.py:118
Methoddetect
(self, img_file, yellow_range=np.array([[140, 230, 230], [170, 255, 255]]),
cradle/utils/object_utils.py:112
FunctiondetectSupportsPassive
()
docs/js/bulma-carousel.js:189
Methoddetect_text_from_frames
(self, frames: List)
cradle/provider/video/video_ocr_extractor.py:137
Methoddetect_text_from_video
(self, video_path: str)
cradle/provider/video/video_ocr_extractor.py:114
Functiondialogue
The function to click on to choose the option of the dialog to make the game going on.
cradle/environment/dealers/atomic_skills/basic_skills.py:12
Functiondismount_horse
Dismounts the horse by pressing the "e" key.
cradle/environment/rdr2/atomic_skills/move.py:60
Functiondisplay_binary_images_grid
Display binary ndarrays as images on a grid with clear separation between grid cells, scaling images down as necessary. Args: images
cradle/utils/image_utils.py:344
Functiondo_action_multiple_times
Execute do_action() for each grid in the 3X3 area in front of the character. This function automates the action of executing do_action() in a gri
cradle/environment/stardew/composite_skills/farm.py:51
Functiondouble_click_at_position
Moves the mouse to the specified x, y corrdinates inside the application window and double clicks at that position. Parameters: - x: The
cradle/environment/software/atomic_skills/base.py:43
Functiondouble_click_at_position
Moves the mouse to the specified x, y corrdinates inside the application window and double clicks at that position. Parameters: - x: The
cradle/environment/capcut/atomic_skills/interact.py:29
Functiondouble_click_at_position
Moves the mouse to the specified x, y corrdinates inside the application window and double clicks at that position. Parameters: - x: The
cradle/environment/xiuxiu/atomic_skills/interact.py:99
Functiondouble_click_on_label
Moves the mouse to the position of the specified box id inside the application window and double clicks. Use case: Add a file to the media.
cradle/environment/capcut/composite_skills/aug_interact.py:27
Functiondouble_click_on_label
Moves the mouse to the position of the specified box id inside the application window and double clicks. Use case: Add a file to the media.
cradle/environment/xiuxiu/composite_skills/aug_interact.py:28
Functiondraw_coordinate_axis_on_screenshot
(image, crop_region = None, axis
cradle/utils/image_utils.py:1138
Functiondraw_region_on_image
(image_path, coordinates, pic_name)
cradle/utils/image_utils.py:88
Functionec
(c)
docs/js/fontawesome.all.min.js:5
Methodembed_query
Embed query text.
cradle/provider/base/base_embedding.py:12
Functionenter_door_and_sleep
Let the character enter the house and then move the character to the bed and interact with it to go to sleep. This function automates the action
cradle/environment/stardew/composite_skills/farm.py:27
Functionentry
(args)
cradle/runner/rdr2_runner.py:284
Functionentry
(args)
cradle/runner/skylines_runner.py:315
← previousnext →801–900 of 1,182, ranked by callers