ACP.ContentBlock (agent_client_protocol v0.1.0)

Copy Markdown View Source

Content blocks represent displayable information in ACP.

Summary

Types

t()

@type t() ::
  {:text, ACP.TextContent.t()}
  | {:image, ACP.ImageContent.t()}
  | {:audio, ACP.AudioContent.t()}
  | {:resource_link, ACP.ResourceLink.t()}
  | {:resource, ACP.EmbeddedResource.t()}

Functions

audio(audio_content)

from_json(map)

from_string(text)

Convenience: create a text content block from a string.

image(image_content)

resource(er)

resource_link(rl)

text(text_content)

to_json(arg)