Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 807 Bytes

api.md

File metadata and controls

28 lines (24 loc) · 807 Bytes

Messages

Types:

from anthropic.types import (
    ContentBlock,
    ContentBlockDeltaEvent,
    ContentBlockStartEvent,
    ContentBlockStopEvent,
    ImageBlockParam,
    Message,
    MessageDeltaEvent,
    MessageDeltaUsage,
    MessageParam,
    MessageStartEvent,
    MessageStopEvent,
    MessageStreamEvent,
    TextBlock,
    TextDelta,
    Usage,
)

Methods:

  • client.messages.create(**params) -> Message
  • client.messages.stream(*args) -> MessageStreamManager[MessageStream] | MessageStreamManager[MessageStreamT]