Skip to content

Can I add customized arguments to an agent's "step" method? #1713

Answered by rht
philip928lin asked this question in Q&A
Discussion options

You must be logged in to vote

From the snippet, it seems to me that a's value doesn't vary across agents. As such, specifying it as a model attribute that is read by the agents should be sufficient. The agents can access the value via self.model.a.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by philip928lin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants