Unified Interface for AI Model Providers
Overview
A production-grade AI toolkit for R featuring a layered architecture (Specification, Utilities, Providers, Core), request interception support, robust error handling with exponential retry delays, support for multiple AI model providers ('OpenAI', 'Anthropic', etc.), local small language model inference, distributed 'MCP' ecosystem, multi-agent orchestration, progressive knowledge loading through skills, and a global skill store for sharing AI capabilities.
- Exported a small, stable "extension API" so that companion provider packages (such as
aisdk.providers) can build on the core HTTP and image-handling machinery without reaching into theaisdknamespace:api_endpoint_urls(),post_to_api(),post_multipart_to_api(),finalize_image_artifacts(),materialize_image_upload(),normalize_image_input_for_json()andnormalize_image_input_to_url_like(). These are documented with\keyword{internal}(kept out of the main help index) and are intended for package authors rather than end users; their behaviour is unchanged. - When a model ID names a provider that lives in a companion package (e.g.
deepseek:...,kimi:...) but that package is not installed, the provider registry now offers to install it in interactive sessions and, in non-interactive sessions, fails with a clear hint naming the package to install. Resolution of already-available providers is unchanged.
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-17
- WARNING12 OK, 1 WARNING2026-10-01
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-02
Show 2 earlier changesHide 2 earlier changes
- ERROR11 OK, 2 ERROR2026-05-30
- OK7 OK2026-04-01
Documentation
- Help pages
- 316 (92 internal)includes a package overview page
- Examples that run
- 25%16 run in a plain check · 40 only when donttest examples are enabled (R CMD check --as-cran) · 9 never run
- Exported functions with examples
- 30%
- Documented parameters
- 97%
- Return-value docs
- 85%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
Commit identities over time
7 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/yulab-smu/aisdk on 2026-10-11.
The R CMD check workflow runs on Linux and Windows
GitHub Pages site last deployed 2026-05-26
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-05-27Named in .Rbuildignore: .claude, CLAUDE.mdNamed in .gitignore: .claudeCommits: at least 15 crediting it in the message
- Devinfirst seen on or before 2026-05-27Named in .Rbuildignore: .devin
- Gemini CLIfirst seen on or before 2026-05-27Named in .Rbuildignore: .gemini
- Claude Opus 4.712 commits · May 2026
- Claude Opus 4.82 commits · Jun 2026
- Claude Fable 51 commit · Jul 2026
Dependencies
Installing aisdk adds 24 packages (17 with compiled code, 7.1 MB of source tarballs). Heaviest: openssl 1.1 MB, jsonlite 1.0 MB, vctrs 1.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.4.12Latest2026-06-02 · current release · diff ↗ ·
added 7 exports
api_endpoint_urls, finalize_image_artifacts, materialize_image_upload, normalize_image_input_for_json, normalize_image_input_to_url_like, post_multipart_to_api, post_to_api - 1.4.112026-05-30 · diff ↗
- 1.4.102026-05-29 · diff ↗ ·
removed 96 exports
AgentTeam, AiHubMixProvider, BailianProvider, ChannelAdapter, ChannelRuntime, ChannelSessionStore, DeepSeekProvider, FeishuChannelAdapter, FileChannelSessionStore, Flow, McpClient, McpDiscovery, McpRouter, McpServer, McpSseClient, Mission, MissionHookHandler, MissionOrchestrator, MissionStep, NvidiaProvider, OpenRouterProvider, SkillStore, SlmEngine, StepfunProvider, VolcengineProvider, XAIProvider, aiChatServer, aiChatUI, analyze_r_package, apiConfigServer and 66 moreadded 78 exports
CaptureRenderer, GenerateImageResult, ImageModelV1, OpenAIImageModel, OpenAILanguageModel, Renderer, analyze_image, as_preview_text, ask_ai, call_object_accessor, capture_r_execution, clear_capability_model, clear_error_context, collect_ai_context, context_get, context_search, create_ask_user_tool, create_auto_skill_registry, create_capture_renderer, create_context_management_config, create_context_query_tools, create_default_semantic_adapter_registry, create_null_renderer, create_r_context_tools, create_r_introspect_tools, create_semantic_adapter, create_semantic_adapter_registry, default_skill_roots, describe_semantic_object, edit_image and 48 more - RR 4.6.0 released · 2026-04-24
- 1.1.02026-03-31
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-03-31
- Total releases
- 4 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 568 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("aisdk")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.