MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / get_default_config_path

Method get_default_config_path

mini_agent/config.py:209–220  ·  view source on GitHub ↗

Get the default config file path with priority search Returns: Path to config.yaml (prioritizes: dev config/ > user config/ > package config/)

(cls)

Source from the content-addressed store, hash-verified

207
208 @classmethod
209 def get_default_config_path(cls) -> Path:
210 """Get the default config file path with priority search
211
212 Returns:
213 Path to config.yaml (prioritizes: dev config/ > user config/ > package config/)
214 """
215 config_path = cls.find_config_file("config.yaml")
216 if config_path:
217 return config_path
218
219 # Fallback to package config directory for error message purposes
220 return cls.get_package_dir() / "config" / "config.yaml"

Callers 2

loadMethod · 0.80
run_agentFunction · 0.80

Calls 2

find_config_fileMethod · 0.80
get_package_dirMethod · 0.80

Tested by

no test coverage detected