forked from p15670423/monkey
Agent: Usa agent config object instead of dict should_propagate
This commit is contained in:
parent
ab67853192
commit
0f848eb284
|
@ -1,2 +1,5 @@
|
|||
def should_propagate(config: dict, current_depth: int) -> bool:
|
||||
return config["config"]["depth"] > current_depth
|
||||
from common.configuration import AgentConfiguration
|
||||
|
||||
|
||||
def should_propagate(config: AgentConfiguration, current_depth: int) -> bool:
|
||||
return config.propagation.maximum_depth > current_depth
|
||||
|
|
Loading…
Reference in New Issue