revelrylabs / prodops_ex

The Elixir SDK for ProdOps
MIT License
0 stars 0 forks source link

#5 GET /api/artifact_types/:slug/artifacts #12

Closed gk-per closed 6 months ago

gk-per commented 6 months ago

What I'm doing:

What it looks like:

iex(1)> ProdopsEx.get_artifacts_for_project(
...(1)>     %{project_id: 212, artifact_slug: "story"},
...(1)>     %ProdopsEx.Config{
...(1)>       bearer_token: "API_KEY",
...(1)>     }
...(1)>   )
{:ok,
 %{
   status: "ok",
   response: %{
     "artifacts" => [
       %{
         "chat_history" => [
           %{
             "content" => "You are going ...",
             "role" => "user"
           },
           %{
             "content" => "## Background....",
             "role" => "assistant"
           }
         ],
         "content" => "## Background...",
         "id" => 4709,
         "manually_edited" => false,
         "name" => "Engineer - ProdOps-SDK - Support Artifact Creation Function",
         "notes" => nil,
         "share_token" => nil
       },
     ]
   }
 }}

What I'd like feedback on: