Skip to content

Add docstring support to @agent #715

@veddox

Description

@veddox

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions