Project structure of: BAAI-Agents/Cradle
GroundingDINO_SwinB_cfg.py
Configures DINO SwinB model with specified parameters.
azure_vis_config.json
Azure OpenAI model config for API, URL, models, and version.openai_config.json
OpenAI config: API key, models, Azure flag.
__init__.py
Agent class importable from cradle.agent moduleagent.py
Intelligent agent with decision-making, memory, and task management.
__init__.py
Initializes Config class and sets all to include only "Config".config.py
Config class for app settings and parameters initialization.
constants.py
Cradle constants for data handling and processing.__init__.py
GameIO: IO, GameManager import & include.__init__.py
Atomic Skills package import and utilities.buy.py
Seamless game browsing and purchasing with Atomic Skills.combat.py
Combat Python Skills: Aim, Weapons, Shoot, Fightmap.py
Interact with map using keys in Atomic Skills.move.py
Control character movement with atomic skills and interact with horse.sell.py
Sell game skills: buy/sell products, switch types with 'e'/'q'.trade_utils.py
Interact with game shopkeepers for product selection.
auto_shoot.py
Automated game AI targets and shoots enemies.follow.py
Follow skill for Cradle game, prioritizing yellow/gray circles. OCR detection and movement updates.go_to_icon.py
Icon-guided robot navigation and obstacle avoidance.navigation.py
Navigation skill for game characters using OpenCV
game_manager.py
GameManager: controls, captures, manages.io_env.py
Manages IO, logs warnings, handles game events with AutoHotkey/pydirectinput.ui_control.py
Game management and error logging with OpenCV.
skill_registry.py
Skill Registry: Libraries, Retrieval, Conflict PreventionVideoEasyOCRExtractor.py
Video-based OCR extractor using OpenCVVideoFrameExtractor.py
Python script for video frame extraction usingJSONStructure
andVideoSubFinderWXW
.VideoRecorder.py
Multi-threaded VideoRecorder with OCR support
__init__.py
Imports Logger class, directly importable.logger.py
Colorful logger with image processing in text and JSON.
__init__.py
Imports and exposes memory classes.base.py
Base class for memory operations with methods and inheritance.basic_vector_memory.py
Basic Vector Memory: Basic class for vector memory. JSON queries, load/save.local_memory.py
LocalMemory: JSON-based local storage for tasks with memory path support.short_term_memory.py
Manage chat memory with vector stores, similarity search, and embedding.vector_store.py
Vector Store Interface Abstract Class
__init__.py
Imports BasePlanner from base module.base.py
Base planner class for data gathering, decision-making, and success detection.planner.py
Python Planner: Gathers, Manages, and Processes Datautil.py
Utility function to retrieve values from dictionaries or objects.
__init__.py
Sets up providers for LLMs, embeddings.base_embedding.py
Base embedding model provider class with abstract methodsbase_llm.py
Base LLM provider class with abstract assemble_prompt methodgd_provider.py
Image captioning and object detection functions with Singleton annotations.openai.py
OpenAI provider initialization and functions.
__init__.py
Cradle utils: Imports, exposes Singleton classes.check.py
Checks planner params and file paths for template itemsencoding_utils.py
Encode/decode base64 data utilities.file_utils.py
File utilities for project paths and resources.image_utils.py
Compare two minimap images for movement using ORB features and threshold.json_utils.py
Python JSON handling utilities with regex matching and parsing.singleton.py
Ensures single instance of class via Singleton metaclass.string_utils.py
String hash utilitytemplate_matching.py
Image template matching OpenCV decorator, formats output.
prototype_runner.py
Multi-functional AI game prototype manager.README.md
Cradle: AI-driven game control framework.requirements.txt
Python project requirements: libraries listed