Package: llm.api 0.1.4
llm.api: Minimal LLM Chat Interface
A minimal-dependency client for Large Language Model chat APIs. Supports 'OpenAI' <https://openai.com/>, 'Anthropic' 'Claude' <https://claude.com/>, 'Moonshot' 'Kimi' <https://www.moonshot.ai/>, 'Ollama' <https://ollama.com/>, and other 'OpenAI'-compatible endpoints. Includes an agent loop with tool use and a 'Model Context Protocol' client <https://modelcontextprotocol.io/>. API design is derived from the 'ellmer' package, reimplemented with only base R, 'curl', and 'jsonlite'.
Authors:
llm.api_0.1.4.tar.gz
llm.api_0.1.4.zip(r-4.7)llm.api_0.1.4.zip(r-4.6)llm.api_0.1.4.zip(r-4.5)
llm.api_0.1.4.tgz(r-4.6-any)llm.api_0.1.4.tgz(r-4.5-any)
llm.api_0.1.4.tar.gz(r-4.7-any)llm.api_0.1.4.tar.gz(r-4.6-any)
llm.api_0.1.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
llm.api/json (API)
NEWS
| # Install 'llm.api' in R: |
| install.packages('llm.api', repos = c('https://cornball-ai.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/cornball-ai/llm.api/issues
Last updated from:79ecdfacd3. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 115 | ||
| source / vignettes | OK | 139 | ||
| linux-release-x86_64 | OK | 108 | ||
| macos-release-arm64 | OK | 82 | ||
| macos-oldrel-arm64 | OK | 68 | ||
| windows-devel | OK | 71 | ||
| windows-release | OK | 71 | ||
| windows-oldrel | OK | 97 | ||
| wasm-release | OK | 107 |
Exports:agentchatchat_claudechat_ollamachat_openaichat_sessionchat_session_anthropicchat_session_ollamachat_session_openaicreate_agenthistory_count_tool_callshistory_tool_callslist_ollama_modelsllm_basellm_keymcp_callmcp_closemcp_connectmcp_startmcp_toolsmcp_tools_for_apimcp_tools_for_claudeprices_snapshot_dateprices_snapshot_staleprovider_default_modelusage_cost
