Package: ellmer 0.4.1.9000

Hadley Wickham

ellmer: Chat with Large Language Models

Chat with large language models from a range of providers including 'Claude' <https://claude.ai>, 'OpenAI' <https://chatgpt.com>, and more. Supports streaming, asynchronous calls, tool calling, and structured data extraction.

Authors:Hadley Wickham [aut, cre], Joe Cheng [aut], Aaron Jacobs [aut], Garrick Aden-Buie [aut], Barret Schloerke [aut], Posit Software, PBC [cph, fnd]

ellmer_0.4.1.9000.tar.gz
ellmer_0.4.1.9000.zip(r-4.7)ellmer_0.4.1.9000.zip(r-4.6)ellmer_0.4.1.9000.zip(r-4.5)
ellmer_0.4.1.9000.tgz(r-4.6-any)ellmer_0.4.1.9000.tgz(r-4.5-any)
ellmer_0.4.1.9000.tar.gz(r-4.7-any)ellmer_0.4.1.9000.tar.gz(r-4.6-any)
ellmer_0.4.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
ellmer/json (API)
NEWS

# Install 'ellmer' in R:
install.packages('ellmer', repos = c('https://tidyverse.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/tidyverse/ellmer/issues

Pkgdown/docs site:https://ellmer.tidyverse.org

On CRAN:

Conda:

16.04 score 602 stars 39 packages 1.6k scripts 16k downloads 108 exports 26 dependencies

Last updated from:405b67254e. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK185
source / vignettesOK240
linux-release-x86_64OK195
macos-release-arm64OK162
macos-oldrel-arm64OK105
windows-develOK206
windows-releaseOK200
windows-oldrelOK177
wasm-releaseOK130

Exports:AssistantPartialTurnAssistantTurnbatch_chatbatch_chat_completedbatch_chat_structuredbatch_chat_textchatchat_anthropicchat_aws_bedrockchat_azure_openaichat_claudechat_cloudflarechat_databrickschat_deepseekchat_githubchat_google_geminichat_google_vertexchat_groqchat_huggingfacechat_lmstudiochat_mistralchat_ollamachat_openaichat_openai_compatiblechat_openrouterchat_perplexitychat_portkeychat_snowflakechat_vllmclaude_file_deleteclaude_file_downloadclaude_file_getclaude_file_listclaude_file_uploadclaude_tool_web_fetchclaude_tool_web_searchContentcontent_image_filecontent_image_plotcontent_image_urlcontent_pdf_filecontent_pdf_urlContentImageContentImageInlineContentImageRemoteContentPDFcontents_htmlcontents_markdowncontents_recordcontents_replaycontents_textContentTextContentThinkingContentToolRequestContentToolResultcreate_tool_defdf_schemagoogle_tool_web_fetchgoogle_tool_web_searchgoogle_uploadhas_credentialsinterpolateinterpolate_fileinterpolate_packagelive_browserlive_consolemodels_anthropicmodels_aws_bedrockmodels_claudemodels_deepseekmodels_githubmodels_google_geminimodels_google_vertexmodels_lmstudiomodels_mistralmodels_ollamamodels_openaimodels_portkeymodels_vllmopenai_tool_web_searchparallel_chatparallel_chat_structuredparallel_chat_textparamsProviderstream_controllerSystemTurntoken_usagetooltool_annotationstool_rejectTurntype_arraytype_booleantype_enumtype_from_schematype_ignoretype_integertype_numbertype_objecttype_stringTypeArrayTypeBasicTypeEnumTypeIgnoreTypeJsonSchemaTypeObjectUserTurn

Dependencies:askpassclicorocurlfastmapgluehttr2jsonlitelaterlifecyclemagrittropensslotelpillarpkgconfigpromisesR6rappdirsRcpprlangS7systibbleutf8vctrswithr

Getting started with ellmer

Rendered fromellmer.Rmdusingknitr::rmarkdownon Jun 03 2026.

Last update: 2026-05-05
Started: 2024-12-19

Programming with ellmer

Rendered fromprogramming.Rmdusingknitr::rmarkdownon Jun 03 2026.

Last update: 2025-07-07
Started: 2025-05-08

Prompt design

Rendered fromprompt-design.Rmdusingknitr::rmarkdownon Jun 03 2026.

Last update: 2025-11-13
Started: 2024-11-28

Streaming and async APIs

Rendered fromstreaming-async.Rmdusingknitr::rmarkdownon Jun 03 2026.

Last update: 2025-05-08
Started: 2024-10-07

Structured data

Rendered fromstructured-data.Rmdusingknitr::rmarkdownon Jun 03 2026.

Last update: 2026-05-12
Started: 2024-10-24

Tool/function calling

Rendered fromtool-calling.Rmdusingknitr::rmarkdownon Jun 03 2026.

Last update: 2025-11-13
Started: 2024-10-07

Readme and manuals

Help Manual

Help pageTopics
Submit multiple chats in one batchbatch_chat batch_chat_completed batch_chat_structured batch_chat_text
Chat with any providerchat
The Chat objectChat
Chat with an Anthropic Claude modelchat_anthropic chat_claude models_anthropic models_claude
Chat with an AWS bedrock modelchat_aws_bedrock models_aws_bedrock
Chat with a model hosted on Azure OpenAIchat_azure_openai
Chat with a model hosted on CloudFlarechat_cloudflare
Chat with a model hosted on Databrickschat_databricks
Chat with a model hosted on DeepSeekchat_deepseek models_deepseek
Chat with a model hosted on the GitHub model marketplacechat_github models_github
Chat with a Google Gemini or Vertex AI modelchat_google_gemini chat_google_vertex models_google_gemini models_google_vertex
Chat with a model hosted on Groqchat_groq
Chat with a model hosted on Hugging Face Serverless Inference APIchat_huggingface
Chat with a local LM Studio modelchat_lmstudio models_lmstudio
Chat with a model hosted on Mistral's La Platformechat_mistral models_mistral
Chat with a local Ollama modelchat_ollama models_ollama
Chat with an OpenAI modelchat_openai models_openai
Chat with an OpenAI-compatible modelchat_openai_compatible
Chat with one of the many models hosted on OpenRouterchat_openrouter
Chat with a model hosted on perplexity.aichat_perplexity
Chat with a model hosted on PortkeyAIchat_portkey models_portkey
Chat with a model hosted on Snowflakechat_snowflake
Chat with a model hosted by vLLMchat_vllm models_vllm
Upload, downloand, and manage files for Claudeclaude_file_delete claude_file_download claude_file_get claude_file_list claude_file_upload
Claude web fetch toolclaude_tool_web_fetch
Claude web search toolclaude_tool_web_search
Content types received from and sent to a chatbotContent ContentImage ContentImageInline ContentImageRemote ContentPDF ContentText ContentThinking ContentToolRequest ContentToolResult
Encode images for chat inputcontent_image_file content_image_plot content_image_url
Encode PDFs content for chat inputcontent_pdf_file content_pdf_url
Format contents into a textual representationcontents_html contents_markdown contents_text
Create metadata for a toolcreate_tool_def
Describe the schema of a data frame, suitable for sending to an LLMdf_schema
Google URL fetch toolgoogle_tool_web_fetch
Google web search (grounding) toolgoogle_tool_web_search
Upload a file to geminigoogle_upload
Helpers for interpolating data into promptsinterpolate interpolate_file interpolate_package
Open a live chat applicationlive_browser live_console
OpenAI web search toolopenai_tool_web_search
Submit multiple chats in parallelparallel_chat parallel_chat_structured parallel_chat_text
Standard model parametersparams
A chatbot providerProvider
Create a stream controllerstream_controller
Report on token usage in the current sessiontoken_usage
Define a tooltool ToolDef
Tool annotationstool_annotations
Reject a tool calltool_reject
A user, assistant, or system turnAssistantPartialTurn AssistantTurn SystemTurn Turn UserTurn
Type definitions for function calling and structured data extraction.Type TypeArray TypeBasic TypeEnum TypeIgnore TypeJsonSchema TypeObject
Type specificationstype_array type_boolean type_enum type_from_schema type_ignore type_integer type_number type_object type_string