Contents

label(_:)

Assigns a label to an attachment.

Declaration

func label(_ label: String) -> Attachment<Content>

Parameters

  • label:

    A string that identifies this attachment.

Mentioned in

Discussion

Labels help the model identify specific attachments when making tool calls.

Attachment(image)
    .label("profile-photo")