Learn R Programming

tidyllm (version 0.8.0)

claude_cli: Chat through a locally installed Claude CLI

Description

claude_cli() routes a chat to the claude command line tool installed on your own machine, using the login it already has. It takes no API key. See claude_cli_chat() for the arguments and for what happens to the CLI's own file and shell tools.

Usage

claude_cli(..., .called_from = NULL)

Value

The result of the requested action; for chat(), an updated LLMMessage.

Arguments

...

Arguments passed to the CLI chat function.

.called_from

Internal; the verb that dispatched here.

Examples

Run this code
if (FALSE) {
llm_message("Explain R's S7 classes in three sentences.") |>
  chat(claude_cli())
}

Run the code above in your browser using DataLab