-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
Description
Attaching a docstring to an @agent definition fails with an error: `'@agent' not documentable. See 'Base.@doc' docs for details.' This is unexpected and problematic, as documenting agent types is important.
The @agent documentation states: "You can use the @doc macro from Julia to document the generated struct if you wish so." However, this statement (1) is easy to overlook, and (2) does not provide an example. (I did not get @doc to work in conjunction with @agent, and could not find a working example.)
My understanding is that docstring support can be added to a macro using @__doc__. Adding this to @agents would allow modellers to better document their code.