Learn R Programming

aisdk (version 1.1.0)

create_console_tools: Create Console Tools

Description

Create a set of tools optimized for console/terminal interaction. Includes computer tools (bash, read_file, write_file, execute_r_code) plus additional console-specific tools.

Usage

create_console_tools(working_dir = tempdir(), sandbox_mode = "permissive")

Value

A list of Tool objects.

Arguments

working_dir

Working directory. Defaults to tempdir().

sandbox_mode

Sandbox mode: "strict", "permissive", or "none" (default: "permissive").

Examples

Run this code
# \donttest{
if (interactive()) {
    tools <- create_console_tools()
    # Use with an agent or session
    session <- create_chat_session(model = "openai:gpt-4o", tools = tools)
}
# }

Run the code above in your browser using DataLab