package anthropic

  1. Overview
  2. Docs

Module Anthropic.MessageSource

Helper functions for creating messages.

user content creates a user message.

User messages represent human input in the conversation. They can contain text, images, documents, or tool results.

Sourceval assistant : input_content_block list -> message

assistant content creates an assistant message.

Assistant messages represent Claude's responses. They typically contain text or tool use requests.