NornsSdk.ConversationResponse (norns_sdk v0.1.0)

Copy Markdown View Source

A conversation's details, as returned by the conversations API.

Summary

Functions

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

Types

t()

@type t() :: %NornsSdk.ConversationResponse{
  agent_id: integer(),
  id: integer(),
  key: String.t(),
  message_count: integer(),
  token_estimate: integer()
}

Functions

from_map(data)

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

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