content_pdf_file: Encode PDFs content for chat input

View source: R/content-pdf.R

content_pdf_fileR Documentation

Encode PDFs content for chat input

Description

These functions are used to prepare PDFs as input to the chatbot. The content_pdf_url() function is used to provide a URL to an PDF file, while content_pdf_file() is used to for local PDF files.

Not all providers support PDF input, so check the documentation for the provider you are using.

Usage

content_pdf_file(path)

content_pdf_url(url)

Arguments

path, url

Path or URL to a PDF file.

Value

A ContentPDF object


ellmer documentation built on April 4, 2025, 3:53 a.m.