document

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBase64

func FromBase64(content string, options ...contractsai.AttachmentOption) contractsai.Attachment

func FromByte

func FromByte(content []byte, options ...contractsai.AttachmentOption) contractsai.Attachment

func FromID

func FromID(id string) contractsai.ProviderFile

func FromPath

func FromPath(path string, options ...contractsai.AttachmentOption) contractsai.Attachment

func FromReader

func FromReader(reader io.Reader, options ...contractsai.AttachmentOption) contractsai.Attachment

func FromStorage

func FromStorage(path string, options ...contractsai.AttachmentOption) contractsai.Attachment

func FromString

func FromString(content string, options ...contractsai.AttachmentOption) contractsai.Attachment

func FromURL

func FromURL(rawURL string, options ...contractsai.AttachmentOption) contractsai.Attachment

func WithDisk

func WithDisk(disk string) contractsai.AttachmentOption

func WithMimeType

func WithMimeType(mimeType string) contractsai.AttachmentOption

func WithTitle

func WithTitle(title string) contractsai.AttachmentOption

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL