ASM.HostTool.Response (ASM v0.10.0)

Copy Markdown View Source

Host dynamic tool invocation response.

Summary

Types

t()

@type t() :: %ASM.HostTool.Response{
  content_items: [map()],
  error: term(),
  metadata: map(),
  output: term(),
  request_id: String.t() | integer(),
  success?: boolean()
}

Functions

new(response)

@spec new(keyword() | map() | t()) :: {:ok, t()} | {:error, term()}

new!(attrs)

@spec new!(keyword() | map() | t()) :: t()

to_dynamic_tool_response(response)

@spec to_dynamic_tool_response(t()) :: map()