Skip to content

About

Interactive terminal chat console for the aisdk toolkit (console_chat REPL, slash commands, inspector, paste handling, terminal agent)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

aisdk.console

Interactive terminal chat console for the aisdk toolkit.

aisdk.console is the terminal front end of the aisdk family: an interactive REPL over the core ChatSession execution engine, with streaming output, slash commands, an inspector overlay with per-turn tool timelines, paste/clipboard-image handling, session branching, and the built-in terminal agent (shell, file, and R tools in the aisdk sandbox).

Installation

# install.packages("remotes")
remotes::install_github("YuLab-SMU/aisdk.console")

Usage

library(aisdk.console)

# Start with the default intelligent terminal agent
console_chat("openai:gpt-4o")

# Simple chat mode without tools
console_chat("openai:gpt-4o", agent = NULL)

# Continue an existing core session
chat <- aisdk::create_chat_session("anthropic:claude-3-5-sonnet-latest")
console_chat(chat)

aisdk::ask_ai() (and the RStudio addin) collects the recent error context and opens this console automatically when aisdk.console is installed.

Relationship to aisdk

The core aisdk package provides the engine (sessions, streaming, tools, hooks, sandbox, model setup); this package provides the terminal UI on top of it, through core's exported extension API only. Model/provider setup is shared core functionality: aisdk::resolve_console_startup_model() and the /model chooser flow work identically for other front ends such as aisdk.shiny.

About

Interactive terminal chat console for the aisdk toolkit (console_chat REPL, slash commands, inspector, paste handling, terminal agent)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages