R中的agent:aisdk的更新介绍与使用
Ranking
No observed public metrics; popularity remains neutral/archived.
Merged summary
TL;DR - The R-ecosystem agent toolkit aisdk (YuLab-SMU) has been refactored from a single package into a modular suite with a CRAN-hosted core plus optional add-ons, and this post walks through installing, configuring a model provider, adding a plotting "skill," and using it for bioinformatics figures. It matters because it brings agentic tool-calling, MCP, and multi-agent orchestration natively into the R console rather than a separate terminal agent.
- Modular repackaging: core
aisdk(on CRAN) is now self-contained, with separate packages for providers (DeepSeek, xAI, NVIDIA, OpenRouter),aisdk.console,aisdk.slm(local inference),aisdk.orchestration(Flow/Team/Mission multi-agent),aisdk.mcp,aisdk.skills,aisdk.channels,aisdk.datatools, andaisdk.shiny. - Core API surface:
generate_text()/stream_text(), schema-constrainedgenerate_object()+z_object(),tool()/create_agent()to expose R functions as callable tools,create_session()for stateful multi-turn chat, plusanalyze_image(),input_file()(PDF),semantic_search()(embeddings), andgenerate_image(). Built-in retry, multi-model fallback, rate limiting, and cost estimation. - Workflow shown: install via
pak::pak()from GitHub, launchconsole_chat(working_dir = getwd()), configure a provider/base URL/API key through the/modelcommand, then install the Bizard plotting skill (a zip URL) to drive publication-style ggplot2 scatter, boxplot, volcano, and annotated heatmap generation from natural-language prompts over airway RNA-seq and limma DE results. - Error handling:
ask_ai()is highlighted as the standout feature — it captures the last R error and returns a fix in place, aimed at R beginners.
Sources (1)
R中的agent:aisdk的更新介绍与使用
TL;DR - The R-ecosystem agent toolkit aisdk (YuLab-SMU) has been refactored from a single package into a modular suite with a CRAN-hosted core plus optional add-ons, and this post walks through installing, configuring a model provider, adding a plotting "skill," and using it for bioinformatics figures. It matters because it brings agentic tool-calling, MCP, and multi-agent orchestration natively into the R console rather than a separate terminal agent.
- Modular repackaging: core
aisdk(on CRAN) is now self-contained, with separate packages for providers (DeepSeek, xAI, NVIDIA, OpenRouter),aisdk.console,aisdk.slm(local inference),aisdk.orchestration(Flow/Team/Mission multi-agent),aisdk.mcp,aisdk.skills,aisdk.channels,aisdk.datatools, andaisdk.shiny. - Core API surface:
generate_text()/stream_text(), schema-constrainedgenerate_object()+z_object(),tool()/create_agent()to expose R functions as callable tools,create_session()for stateful multi-turn chat, plusanalyze_image(),input_file()(PDF),semantic_search()(embeddings), andgenerate_image(). Built-in retry, multi-model fallback, rate limiting, and cost estimation. - Workflow shown: install via
pak::pak()from GitHub, launchconsole_chat(working_dir = getwd()), configure a provider/base URL/API key through the/modelcommand, then install the Bizard plotting skill (a zip URL) to drive publication-style ggplot2 scatter, boxplot, volcano, and annotated heatmap generation from natural-language prompts over airway RNA-seq and limma DE results. - Error handling:
ask_ai()is highlighted as the standout feature — it captures the last R error and returns a fix in place, aimed at R beginners.