def build_agent_from_config(config_path: str) -> Agent: """Build and return the agent described in corresponding configuration file.""" config = read_json(config_path) skill_configs = config['skills'] commutator_config = config['commutator'] return Agent(skill_configs, commutator_config)
def build_agent_from_config(config_path: str): config = read_json(config_path) skill_configs = config['skills'] commutator_config = config['commutator'] return Agent(skill_configs, commutator_config)