NornsSdk.AgentResponse (norns_sdk v0.1.0)

Copy Markdown View Source

An agent's server-side details, as returned by the agents API.

Distinct from NornsSdk.Agent, which is the declarative definition you register from a worker.

Summary

Functions

Parse a decoded API map (string keys) into an AgentResponse.

Types

t()

@type t() :: %NornsSdk.AgentResponse{
  id: integer(),
  max_steps: integer(),
  mode: String.t(),
  model: String.t(),
  name: String.t(),
  status: String.t(),
  system_prompt: String.t()
}

Functions

from_map(data)

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

Parse a decoded API map (string keys) into an AgentResponse.