Skip to content

Commit

Permalink
Update agents.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Jul 30, 2024
1 parent 8f86d2f commit 196078f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/core/agents.jl
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,15 @@ function compute_base_fields(base_type_spec)
@capture(base_agent, mutable struct _ <: _ base_fields__ end)
return base_fields
end

macro multiagent(typedef)
if typedef.head == :struct
@warn "This version of @multiagent is deprecated because the underlying package
implementing the backend for it was updated to a much simpler methodology,
refer to the updated Tutorial in the documentation to update your
model to use the new methodology."
return esc(_multiagent(QuoteNode(:opt_speed), struct_repr))
else
return esc(:($DynamicSumTypes.@sumtype $typedef))
end
end

0 comments on commit 196078f

Please sign in to comment.