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
↓ 118 callers
Method
get_recent_history
( self, key: str, k: int = 1, )
cradle/memory/base.py:65
↓ 106 callers
Method
write
( self, message="", title="", title_color=Fore.WHITE,
cradle/log/logger.py:152
↓ 92 callers
Method
write
(func)
cradle/provider/base/base_provider.py:20
↓ 89 callers
Method
key_press
(self, key, duration=None)
cradle/gameio/io_env.py:426
↓ 69 callers
Method
debug
(func)
cradle/provider/base/base_provider.py:47
↓ 62 callers
Method
mouse_click_button
(self, button, duration = None, clicks=1)
cradle/gameio/io_env.py:303
↓ 59 callers
Function
post_skill_wait
Wait for skill to finish. Like if there is an animation
cradle/environment/skill.py:73
↓ 56 callers
Method
warn
( self, message, title="", title_color=Fore.YELLOW, )
cradle/log/logger.py:161
↓ 53 callers
Method
mouse_move
(self, x, y, duration = -1, relative = False)
cradle/gameio/io_env.py:287
↓ 51 callers
Method
debug
( self, message, title="", title_color=Fore.GREEN, )
cradle/log/logger.py:143
↓ 47 callers
Method
error
(func)
cradle/provider/base/base_provider.py:74
↓ 45 callers
Function
$
(a)
docs/js/fontawesome.all.min.js:5
↓ 38 callers
Method
update_info_history
(self, data: Dict[str, Any])
cradle/memory/local_memory.py:110
↓ 36 callers
Function
assemble_project_path
Assemble a path relative to the project root directory
cradle/utils/file_utils.py:5
↓ 35 callers
Method
save
Save the memory to persistence.
cradle/memory/base.py:89
↓ 34 callers
Method
add
Add data to memory. Args: **kwargs: Other keyword arguments that subclasses might use.
cradle/memory/base.py:23
↓ 33 callers
Function
n
(t,e)
docs/js/bulma-carousel.min.js:1
↓ 32 callers
Function
__webpack_require__
(moduleId)
docs/js/bulma-carousel.js:16
↓ 31 callers
Function
i
(t)
docs/js/bulma-carousel.min.js:1
↓ 30 callers
Method
error
( self, message, title="" )
cradle/log/logger.py:135
↓ 28 callers
Function
kget
(obj, *keys, default=None)
cradle/utils/dict_utils.py:1
↓ 27 callers
Function
parse_semi_formatted_text
(text)
cradle/utils/json_utils.py:116
↓ 26 callers
Method
assemble_prompt
(self, template_str: str = None, params: Dict[str, Any] = None)
cradle/provider/llm/claude.py:553
↓ 26 callers
Function
defineProperties
(target, props)
docs/js/bulma-carousel.js:273
↓ 24 callers
Method
mouse_move_normalized
(self, x, y, relative = False, from_center = False)
cradle/gameio/io_env.py:269
↓ 23 callers
Method
create_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 callers
Function
_isWin
()
cradle/gameio/gui_utils.py:19
↓ 19 callers
Method
create
(self, llm_provider_config_path, embed_provider_config_path, **kwargs)
cradle/provider/llm/llm_factory.py:12
↓ 17 callers
Function
_check_valid_coordinates
(x, y)
cradle/environment/skylines/atomic_skills/basic_skills.py:391
↓ 17 callers
Function
c
()
docs/js/fontawesome.all.min.js:5
↓ 17 callers
Method
format
(self, record)
cradle/log/logger.py:16
↓ 14 callers
Function
_isMac
()
cradle/gameio/gui_utils.py:15
↓ 13 callers
Function
_classCallCheck
(instance, Constructor)
docs/js/bulma-carousel.js:277
↓ 13 callers
Method
add_recent_history_kv
Add recent info (skill/image/reasoning) to memory.
cradle/memory/local_memory.py:62
↓ 13 callers
Method
get_windows_by_name
(self, env_name)
cradle/gameio/io_env.py:569
↓ 13 callers
Function
load_json
(file_path)
cradle/utils/json_utils.py:14
↓ 13 callers
Method
show
Show the target window
cradle/gameio/gui_utils.py:231
↓ 12 callers
Function
extract_response_key
(data: Dict, key: str)
cradle/runner/app_runner.py:834
↓ 12 callers
Function
z
(c)
docs/js/fontawesome.all.min.js:5
↓ 11 callers
Method
activate
Activate the target window
cradle/gameio/gui_utils.py:134
↓ 11 callers
Function
turn
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 callers
Function
move_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 callers
Function
move_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 callers
Function
move_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 callers
Method
key_hold
(self, key, duration=None)
cradle/gameio/io_env.py:449
↓ 9 callers
Function
move_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 callers
Function
move_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 callers
Method
_run_applescript
(self, applescript_command, capture_output=False)
cradle/gameio/gui_utils.py:120
↓ 8 callers
Method
get_current_frame_id
Get the current frame id
cradle/provider/video/video_recorder.py:148
↓ 8 callers
Function
is_valid_value
(value: Any)
cradle/utils/check.py:11
↓ 8 callers
Method
mouse_hold_button
(self, button)
cradle/gameio/io_env.py:325
↓ 8 callers
Method
mouse_release_button
(self, button)
cradle/gameio/io_env.py:336
↓ 7 callers
Function
a
(c)
docs/js/fontawesome.all.min.js:5
↓ 7 callers
Method
convert_expression_to_skill
(self, expression)
cradle/gameio/game_manager.py:133
↓ 7 callers
Function
get_named_windows
(env_name)
cradle/gameio/gui_utils.py:465
↓ 7 callers
Method
get_skill_information
(self, skill_list, skill_library_with_code = False
cradle/gameio/game_manager.py:98
↓ 7 callers
Function
key_up
(key)
cradle/gameio/gui_utils.py:407
↓ 7 callers
Function
l
(l)
docs/js/fontawesome.all.min.js:5
↓ 7 callers
Function
read_resource_file
(path)
cradle/utils/file_utils.py:33
↓ 7 callers
Method
retrieve_skills
(self, query_task, skill_num, screen_type)
cradle/gameio/game_manager.py:122
↓ 7 callers
Method
search_type_across_all_indices
(self, search_type: str)
cradle/utils/json_utils.py:225
↓ 7 callers
Function
switch_to_environment
()
cradle/gameio/lifecycle/ui_control.py:24
↓ 6 callers
Method
_config_warn
(self, message)
cradle/config/config.py:351
↓ 6 callers
Method
_mouse_button_up
(self, button)
cradle/gameio/io_env.py:111
↓ 6 callers
Method
add_instance
(self, timestamp: str, instance: dict[str, any])
cradle/utils/json_utils.py:201
↓ 6 callers
Function
bc
(c)
docs/js/fontawesome.all.min.js:5
↓ 6 callers
Function
do_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 callers
Method
embed_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 callers
Method
finish_capture
(self)
cradle/provider/video/video_recorder.py:239
↓ 6 callers
Method
keys_type
(self, text)
cradle/gameio/io_env.py:479
↓ 6 callers
Method
pause_game
(self, *args, env_name=config.env_name, ide_name=conf
cradle/gameio/game_manager.py:36
↓ 6 callers
Method
sign
(self, key, msg)
cradle/provider/llm/restful_claude_client.py:46
↓ 5 callers
Method
__init__
(self, *args, gm = Any, use_screenshot_augmented = False, u
cradle/provider/process/information_gathering.py:27
↓ 5 callers
Method
__init__
(self, *args, gm: Any, use_screenshot_augmented = False, us
cradle/provider/process/task_inference.py:16
↓ 5 callers
Method
__init__
(self, *args, gm: Any, use_screenshot_augmented = False, us
cradle/provider/process/self_reflection.py:19
↓ 5 callers
Method
__init__
(self, *args, gm: Any, use_screenshot_augmented = False, **
cradle/provider/process/action_planning.py:16
↓ 5 callers
Method
_log
( self, title="", title_color=Fore.WHITE, message="",
cradle/log/logger.py:113
↓ 5 callers
Method
action_planning
(self)
cradle/runner/app_runner.py:760
↓ 5 callers
Method
action_planning_postprocess
(self, response)
cradle/runner/app_runner.py:768
↓ 5 callers
Method
action_planning_preprocess
(self)
cradle/runner/app_runner.py:686
↓ 5 callers
Method
cleanup_io
(self)
cradle/gameio/game_manager.py:240
↓ 5 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/capcut/atomic_skills/interact.py:13
↓ 5 callers
Method
create
(self, key, **kwargs)
cradle/environment/skill_registry_factory.py:32
↓ 5 callers
Method
create
(self, key, **kwargs)
cradle/environment/ui_control_factory.py:32
↓ 5 callers
Function
fc
(c,l)
docs/js/fontawesome.all.min.js:5
↓ 5 callers
Method
get_summarization
(self)
cradle/memory/base.py:79
↓ 5 callers
Method
information_gathering
(self, debug)
cradle/runner/app_runner.py:405
↓ 5 callers
Method
information_gathering_postprocess
(self, response)
cradle/runner/app_runner.py:421
↓ 5 callers
Method
information_gathering_preprocess
(self)
cradle/runner/app_runner.py:287
↓ 5 callers
Function
key_down
(key)
cradle/gameio/gui_utils.py:400
↓ 5 callers
Function
kl
()
docs/js/fontawesome.all.min.js:5
↓ 5 callers
Method
load
Load the memory from persistence.
cradle/memory/base.py:84
↓ 5 callers
Method
mouse_hold
(self, button, duration = None)
cradle/gameio/io_env.py:315
↓ 5 callers
Function
pc
()
docs/js/fontawesome.all.min.js:5
↓ 5 callers
Function
process_log_messages
(work_dir)
log_processor.py:112
↓ 5 callers
Function
r
(t)
docs/js/bulma-carousel.min.js:1
↓ 5 callers
Function
r
(t,e)
docs/js/bulma-slider.min.js:1
↓ 5 callers
Method
register_builder
(self, key, builder_str)
cradle/environment/skill_registry_factory.py:12
↓ 5 callers
Method
register_builder
(self, key, builder_str)
cradle/environment/ui_control_factory.py:12
↓ 5 callers
Function
s
(t)
docs/js/bulma-carousel.min.js:1
next →
1–100 of 1,182, ranked by callers