Implement Conditional Native Transfer in Learning ABCI Skills #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This pull request introduces a new set of components aimed at managing conditional native transfers within the
learning_abci
skill. The modifications include the creation ofConditionalNativeTransferBehaviour
,ConditionalNativeTransferPayload
, andConditionalNativeTransferRound
. These elements work together to enhance the agent's capabilities in handling native transactions based on predefined conditions.Changes
learning_abci Skill:
behaviours.py
: AddedConditionalNativeTransferBehaviour
to initiate transactions based on specific conditions.rounds.py
: ImplementedConditionalNativeTransferRound
to define the transaction round logic.payloads.py
: CreatedConditionalNativeTransferPayload
to encapsulate the data necessary for executing conditional native transactions.fsm_specification.yaml
: Updated the finite state machine specifications to include states and transitions related to the new conditional transfer logic.learning_chained_abci Skill:
fsm_specification.yaml
: Modifications to the FSM to acknowledge and support the new behavior introduced inlearning_abci
.Purpose
The introduction of these components allows for more dynamic transaction execution strategies, enabling the agent to perform transactions that are not only reactive but also conditional on internal state or external events. This enhancement aligns with ongoing efforts to broaden the utility and responsiveness of our autonomous economic agents.