autonomy.fsm.scaffold.scaffold_
skill
Scaffold skill from an FSM
SkillConfigUpdater Objects
class SkillConfigUpdater()
Update the skill configuration according to the Abci classes.
__
init__
def __init__(ctx: Context, skill_dir: Path, dfa: DFA) -> None
Initialize the skill config updater.
Arguments:
ctx
: the AEA CLI context object.skill_dir
: the directory of the AEA skill package.dfa
: the DFA object.
update
def update() -> None
Update the skill configuration file.
get_
actual_
abstract_
round_
abci_
package_
public_
id
@classmethod
def get_actual_abstract_round_abci_package_public_id(
cls, ctx: Context) -> Optional[PublicId]
Get abstract round abci pacakge id from the registry.
ScaffoldABCISkill Objects
class ScaffoldABCISkill()
Utility class that implements the scaffolding of the ABCI skill.
__
init__
def __init__(ctx: Context, skill_name: str, spec_path: Path) -> None
Initialize the utility class.
skill_
dir
@property
def skill_dir() -> Path
Get the directory to the skill.
skill_
test_
dir
@property
def skill_test_dir() -> Path
Get the directory to the skill tests.
do_
scaffolding
def do_scaffolding() -> None
Do the scaffolding.
add_
skill_
to_
packages
def add_skill_to_packages() -> None
Add skill to packages.json if scaffolded to local packages repository