RevelryAI.ArtifactType (RevelryAI v0.1.0)

View Source

Handles artifact type operations for the RevelryAI API.

These represent types of outputs. They may be things like user stories, code snippets, blog posts, or anything else that has been defined within the RevelryAI UI. They are used to classify generated Artifacts into groups.

Summary

Functions

Returns a list of all artifact types for a given team

Functions

list(config \\ [])

@spec list(Keyword.t()) :: {:ok, map()} | {:error, any()}

Returns a list of all artifact types for a given team

Examples

iex> RevelryAI.ArtifactType.list()
{:ok,
  %{
    status: "ok",
    response: %{
      "artifact_types" => [
        %{
          "description" => "This is a story",
          "name" => "Story",
          "slug" => "story"
        },
        ...
      ]
    }
  }
}