Added param default_values for init_agent
This commit is contained in:
parent
e4ac6cb4ac
commit
2098daa909
|
@ -73,7 +73,9 @@ class Agent:
|
|||
####
|
||||
# Init agent template
|
||||
#########################################################################################
|
||||
def init_agent() -> dict:
|
||||
def init_agent(
|
||||
default_values: dict = {}
|
||||
) -> dict:
|
||||
"""
|
||||
Initializes an agent template with default values.
|
||||
|
||||
|
@ -95,6 +97,10 @@ def init_agent() -> dict:
|
|||
"agent_mode" : "1",
|
||||
}
|
||||
|
||||
for key, value in default_values.items():
|
||||
if key in agent:
|
||||
agent[key] = value
|
||||
|
||||
return agent
|
||||
|
||||
####
|
||||
|
|
Loading…
Reference in New Issue