Open thobson88 opened 1 year ago
Suggested process:
Trader
uses the wrapped Forager
's posted_offer
field to resolve possible trades (this process must ensure offers are still valid at this point)Trader
's are ensured to only trade once using the traded
vecForager
takes an action based on agent_state
(which now should include posted_offer
)posted_offer
is valid, given the inventory levels of the agent (if not, set to trivial - agent must learn which offers are possible given resource levels)Useful analysis:
posted_offer
cancellation (due to incorrectly judged offer action)
Currently offers are determined by fixed rules based on the agent's inventory.
For truly emergent trading, we need decisions on offers to be part of the action space.