open-autonomy icon indicating copy to clipboard operation
open-autonomy copied to clipboard

FSM scaffold tool should generate a working skill.

Open jmoreira-valory opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. Currently, autonomy scaffold fsm generates a collection of template classes that require be populated in order to have a working component.

If a user starts working in an service and uses this empty FSM (as it has been generated), it will fail when the service is run (e.g., locally for testing).

Describe the solution you'd like A much nicer user experience would be that the user can scaffold the FSM and have some dummy agent/service running (without needing to code anyting), and then he can start coding and tuning it according to their needs.

I agree this might be complicated because it heavily deppends on the structure of the FSM for each service. A possible idea would be that the code of the "dummy" FSM created simply waits X seconds and returns the first event in alphabetical order in each state (i.e., the scaffold tool hardcodes the state on the code). In summary:

  • Each round is CollectSameUntilAll and returns the first event in alphabetical order.
  • Each behaviour waits X seconds and returns a fixed dummy payload.

Describe alternatives you've considered

Additional context This comes when presenting the guides/tutorial. It "breaks" the presentation flow to have something that needs a lot of coding to make it work.

jmoreira-valory avatar Mar 17 '23 10:03 jmoreira-valory