NornsSdk.RunResponse (norns_sdk v0.1.0)

Copy Markdown View Source

A run's details, as returned by GET /api/v1/runs/:id.

Summary

Functions

Parse a decoded API map (string keys) into a RunResponse.

Types

t()

@type t() :: %NornsSdk.RunResponse{
  agent_id: integer(),
  conversation_id: integer() | nil,
  inserted_at: String.t() | nil,
  output: String.t() | nil,
  run_id: integer(),
  status: String.t(),
  trigger_type: String.t()
}

Functions

from_map(data)

@spec from_map(map()) :: t()

Parse a decoded API map (string keys) into a RunResponse.