ACP.StreamMessage (agent_client_protocol v0.1.0)

Copy Markdown View Source

A message that flows through the RPC stream.

Used for observing and debugging protocol communication.

Summary

Types

content()

@type content() ::
  {:request, id :: any(), method :: String.t(), params :: any()}
  | {:response, id :: any(), result :: {:ok, any()} | {:error, ACP.Error.t()}}
  | {:notification, method :: String.t(), params :: any()}

direction()

@type direction() :: :incoming | :outgoing

t()

@type t() :: %ACP.StreamMessage{direction: direction(), message: content()}