ArchAstro.Types.AgentRoutineRun (archastro v0.2.0)

Copy Markdown

A single execution of an agent routine, capturing its status, inputs, outputs, and timing.

Summary

Types

t()

@type t() :: %ArchAstro.Types.AgentRoutineRun{
  acl: ArchAstro.Types.Acl.t() | ArchAstro.Unset.t(),
  agent: String.t() | ArchAstro.Unset.t(),
  app: String.t() | ArchAstro.Unset.t(),
  created_at: DateTime.t() | ArchAstro.Unset.t(),
  delivery: ArchAstro.Types.AgentRoutineRunDelivery.t() | ArchAstro.Unset.t(),
  duration_ms: integer() | ArchAstro.Unset.t(),
  event_id: String.t() | ArchAstro.Unset.t(),
  id: String.t(),
  metadata: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  participants:
    %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  payload: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  result: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  routine: String.t() | ArchAstro.Unset.t(),
  status: String.t() | ArchAstro.Unset.t(),
  structured_response:
    %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  updated_at: DateTime.t() | ArchAstro.Unset.t(),
  worker: ArchAstro.Types.WorkerStatus.t() | ArchAstro.Unset.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()