Documentation
¶
Overview ¶
Package imageinput handles image input from clipboard paste and file drag-drop, converting raw data to agentcore ContentBlocks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromBytes ¶
func FromBytes(data []byte) (agentcore.ContentBlock, error)
FromBytes validates raw image data and returns an ImageBlock. Checks size limit and MIME type.
func LoadFile ¶
func LoadFile(path string) (agentcore.ContentBlock, error)
LoadFile reads an image file and returns a validated ContentBlock.
func ParseDroppedPath ¶
ParseDroppedPath extracts an image file path from bracketed-paste text. Handles terminal drag-drop formats: quoted, backslash-escaped, raw. Returns "" if the text is not an image file path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.