MCPcopy Create free account

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

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

↓ 118 callersMethodget_recent_history
( self, key: str, k: int = 1, )
cradle/memory/base.py:65
↓ 106 callersMethodwrite
( self, message="", title="", title_color=Fore.WHITE,
cradle/log/logger.py:152
↓ 92 callersMethodwrite
(func)
cradle/provider/base/base_provider.py:20
↓ 89 callersMethodkey_press
(self, key, duration=None)
cradle/gameio/io_env.py:426
↓ 69 callersMethoddebug
(func)
cradle/provider/base/base_provider.py:47
↓ 62 callersMethodmouse_click_button
(self, button, duration = None, clicks=1)
cradle/gameio/io_env.py:303
↓ 59 callersFunctionpost_skill_wait
Wait for skill to finish. Like if there is an animation
cradle/environment/skill.py:73
↓ 56 callersMethodwarn
( self, message, title="", title_color=Fore.YELLOW, )
cradle/log/logger.py:161
↓ 53 callersMethodmouse_move
(self, x, y, duration = -1, relative = False)
cradle/gameio/io_env.py:287
↓ 51 callersMethoddebug
( self, message, title="", title_color=Fore.GREEN, )
cradle/log/logger.py:143
↓ 47 callersMethoderror
(func)
cradle/provider/base/base_provider.py:74
↓ 45 callersFunction$
(a)
docs/js/fontawesome.all.min.js:5
↓ 38 callersMethodupdate_info_history
(self, data: Dict[str, Any])
cradle/memory/local_memory.py:110
↓ 36 callersFunctionassemble_project_path
Assemble a path relative to the project root directory
cradle/utils/file_utils.py:5
↓ 35 callersMethodsave
Save the memory to persistence.
cradle/memory/base.py:89
↓ 34 callersMethodadd
Add data to memory. Args: **kwargs: Other keyword arguments that subclasses might use.
cradle/memory/base.py:23
↓ 33 callersFunctionn
(t,e)
docs/js/bulma-carousel.min.js:1
↓ 32 callersFunction__webpack_require__
(moduleId)
docs/js/bulma-carousel.js:16
↓ 31 callersFunctioni
(t)
docs/js/bulma-carousel.min.js:1
↓ 30 callersMethoderror
( self, message, title="" )
cradle/log/logger.py:135
↓ 28 callersFunctionkget
(obj, *keys, default=None)
cradle/utils/dict_utils.py:1
↓ 27 callersFunctionparse_semi_formatted_text
(text)
cradle/utils/json_utils.py:116
↓ 26 callersMethodassemble_prompt
(self, template_str: str = None, params: Dict[str, Any] = None)
cradle/provider/llm/claude.py:553
↓ 26 callersFunctiondefineProperties
(target, props)
docs/js/bulma-carousel.js:273
↓ 24 callersMethodmouse_move_normalized
(self, x, y, relative = False, from_center = False)
cradle/gameio/io_env.py:269
↓ 23 callersMethodcreate_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/claude.py:101
↓ 22 callersFunction_isWin
()
cradle/gameio/gui_utils.py:19
↓ 19 callersMethodcreate
(self, llm_provider_config_path, embed_provider_config_path, **kwargs)
cradle/provider/llm/llm_factory.py:12
↓ 17 callersFunction_check_valid_coordinates
(x, y)
cradle/environment/skylines/atomic_skills/basic_skills.py:391
↓ 17 callersFunctionc
()
docs/js/fontawesome.all.min.js:5
↓ 17 callersMethodformat
(self, record)
cradle/log/logger.py:16
↓ 14 callersFunction_isMac
()
cradle/gameio/gui_utils.py:15
↓ 13 callersFunction_classCallCheck
(instance, Constructor)
docs/js/bulma-carousel.js:277
↓ 13 callersMethodadd_recent_history_kv
Add recent info (skill/image/reasoning) to memory.
cradle/memory/local_memory.py:62
↓ 13 callersMethodget_windows_by_name
(self, env_name)
cradle/gameio/io_env.py:569
↓ 13 callersFunctionload_json
(file_path)
cradle/utils/json_utils.py:14
↓ 13 callersMethodshow
Show the target window
cradle/gameio/gui_utils.py:231
↓ 12 callersFunctionextract_response_key
(data: Dict, key: str)
cradle/runner/app_runner.py:834
↓ 12 callersFunctionz
(c)
docs/js/fontawesome.all.min.js:5
↓ 11 callersMethodactivate
Activate the target window
cradle/gameio/gui_utils.py:134
↓ 11 callersFunctionturn
Turns the in-game character left or right based on the specified theta angle. Parameters: - theta: The angle for the turn. Use a negativ
cradle/environment/rdr2/atomic_skills/move.py:27
↓ 10 callersFunctionmove_forward
Moves the in-game character forward for the specified duration. Parameters: - duration: The duration in seconds for which the character
cradle/environment/rdr2/atomic_skills/move.py:39
↓ 10 callersFunctionmove_left
Moves the character to the left (west) by pressing the 'a' key for the specified duration. This action simulates the character moving left on the
cradle/environment/stardew/atomic_skills/basic_skills.py:136
↓ 10 callersFunctionmove_up
Moves the character upward (north) by pressing the 'w' key for the specified duration. This action simulates the character moving up on the game
cradle/environment/stardew/atomic_skills/basic_skills.py:114
↓ 9 callersMethodkey_hold
(self, key, duration=None)
cradle/gameio/io_env.py:449
↓ 9 callersFunctionmove_down
Moves the character downward (south) by pressing the 's' key for the specified duration. This action simulates the character moving down on the g
cradle/environment/stardew/atomic_skills/basic_skills.py:125
↓ 9 callersFunctionmove_right
Moves the character to the right (east) by pressing the 'd' key for the specified duration. This action simulates the character moving right on t
cradle/environment/stardew/atomic_skills/basic_skills.py:147
↓ 8 callersMethod_run_applescript
(self, applescript_command, capture_output=False)
cradle/gameio/gui_utils.py:120
↓ 8 callersMethodget_current_frame_id
Get the current frame id
cradle/provider/video/video_recorder.py:148
↓ 8 callersFunctionis_valid_value
(value: Any)
cradle/utils/check.py:11
↓ 8 callersMethodmouse_hold_button
(self, button)
cradle/gameio/io_env.py:325
↓ 8 callersMethodmouse_release_button
(self, button)
cradle/gameio/io_env.py:336
↓ 7 callersFunctiona
(c)
docs/js/fontawesome.all.min.js:5
↓ 7 callersMethodconvert_expression_to_skill
(self, expression)
cradle/gameio/game_manager.py:133
↓ 7 callersFunctionget_named_windows
(env_name)
cradle/gameio/gui_utils.py:465
↓ 7 callersMethodget_skill_information
(self, skill_list, skill_library_with_code = False
cradle/gameio/game_manager.py:98
↓ 7 callersFunctionkey_up
(key)
cradle/gameio/gui_utils.py:407
↓ 7 callersFunctionl
(l)
docs/js/fontawesome.all.min.js:5
↓ 7 callersFunctionread_resource_file
(path)
cradle/utils/file_utils.py:33
↓ 7 callersMethodretrieve_skills
(self, query_task, skill_num, screen_type)
cradle/gameio/game_manager.py:122
↓ 7 callersMethodsearch_type_across_all_indices
(self, search_type: str)
cradle/utils/json_utils.py:225
↓ 7 callersFunctionswitch_to_environment
()
cradle/gameio/lifecycle/ui_control.py:24
↓ 6 callersMethod_config_warn
(self, message)
cradle/config/config.py:351
↓ 6 callersMethod_mouse_button_up
(self, button)
cradle/gameio/io_env.py:111
↓ 6 callersMethodadd_instance
(self, timestamp: str, instance: dict[str, any])
cradle/utils/json_utils.py:201
↓ 6 callersFunctionbc
(c)
docs/js/fontawesome.all.min.js:5
↓ 6 callersFunctiondo_action
The function is designed to perform a generic action on objects or characters within one body length of the player character. This could include
cradle/environment/stardew/atomic_skills/basic_skills.py:44
↓ 6 callersMethodembed_query
Call out to OpenAI's embedding endpoint for embedding query text. Args: text: The text to embed. Returns: Em
cradle/provider/llm/openai.py:235
↓ 6 callersMethodfinish_capture
(self)
cradle/provider/video/video_recorder.py:239
↓ 6 callersMethodkeys_type
(self, text)
cradle/gameio/io_env.py:479
↓ 6 callersMethodpause_game
(self, *args, env_name=config.env_name, ide_name=conf
cradle/gameio/game_manager.py:36
↓ 6 callersMethodsign
(self, key, msg)
cradle/provider/llm/restful_claude_client.py:46
↓ 5 callersMethod__init__
(self, *args, gm = Any, use_screenshot_augmented = False, u
cradle/provider/process/information_gathering.py:27
↓ 5 callersMethod__init__
(self, *args, gm: Any, use_screenshot_augmented = False, us
cradle/provider/process/task_inference.py:16
↓ 5 callersMethod__init__
(self, *args, gm: Any, use_screenshot_augmented = False, us
cradle/provider/process/self_reflection.py:19
↓ 5 callersMethod__init__
(self, *args, gm: Any, use_screenshot_augmented = False, **
cradle/provider/process/action_planning.py:16
↓ 5 callersMethod_log
( self, title="", title_color=Fore.WHITE, message="",
cradle/log/logger.py:113
↓ 5 callersMethodaction_planning
(self)
cradle/runner/app_runner.py:760
↓ 5 callersMethodaction_planning_postprocess
(self, response)
cradle/runner/app_runner.py:768
↓ 5 callersMethodaction_planning_preprocess
(self)
cradle/runner/app_runner.py:686
↓ 5 callersMethodcleanup_io
(self)
cradle/gameio/game_manager.py:240
↓ 5 callersFunctionclick_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/capcut/atomic_skills/interact.py:13
↓ 5 callersMethodcreate
(self, key, **kwargs)
cradle/environment/skill_registry_factory.py:32
↓ 5 callersMethodcreate
(self, key, **kwargs)
cradle/environment/ui_control_factory.py:32
↓ 5 callersFunctionfc
(c,l)
docs/js/fontawesome.all.min.js:5
↓ 5 callersMethodget_summarization
(self)
cradle/memory/base.py:79
↓ 5 callersMethodinformation_gathering
(self, debug)
cradle/runner/app_runner.py:405
↓ 5 callersMethodinformation_gathering_postprocess
(self, response)
cradle/runner/app_runner.py:421
↓ 5 callersMethodinformation_gathering_preprocess
(self)
cradle/runner/app_runner.py:287
↓ 5 callersFunctionkey_down
(key)
cradle/gameio/gui_utils.py:400
↓ 5 callersFunctionkl
()
docs/js/fontawesome.all.min.js:5
↓ 5 callersMethodload
Load the memory from persistence.
cradle/memory/base.py:84
↓ 5 callersMethodmouse_hold
(self, button, duration = None)
cradle/gameio/io_env.py:315
↓ 5 callersFunctionpc
()
docs/js/fontawesome.all.min.js:5
↓ 5 callersFunctionprocess_log_messages
(work_dir)
log_processor.py:112
↓ 5 callersFunctionr
(t)
docs/js/bulma-carousel.min.js:1
↓ 5 callersFunctionr
(t,e)
docs/js/bulma-slider.min.js:1
↓ 5 callersMethodregister_builder
(self, key, builder_str)
cradle/environment/skill_registry_factory.py:12
↓ 5 callersMethodregister_builder
(self, key, builder_str)
cradle/environment/ui_control_factory.py:12
↓ 5 callersFunctions
(t)
docs/js/bulma-carousel.min.js:1
next →1–100 of 1,182, ranked by callers