def interact_agent(config_path):
a = build_agent_from_config(config_path)
commutator_name = a.commutator_config["name"]
commutator = from_params(REGISTRY[commutator_name], a.commutator_config)
models = [build_model_from_config(sk) for sk in a.skill_configs]
while True:
After Change
def interact_agent(config_path):
a = build_agent_from_config(config_path)
commutator = from_params(a.commutator_config)
models = [build_model_from_config(sk) for sk in a.skill_configs]
while True:
// get input from user