Package: gptr
Title: Language Model Agents in Live 'R' Sessions
Version: 1.0.0
Authors@R: c(
    person("Wanjun", "Gu", , "wanjun.gu@ucsf.edu", role = c("aut", "cre", "cph"),
           comment = c(ORCID = "0000-0002-7342-7000")),
    person("Tianlu", "Zhu", , "tianluz2013@gmail.com", role = "ctb",
           comment = "UI/UX polishing and CI/CD"),
    person("Gianmarco", "Bellucci", , "Gianmarco.Bellucci@ucsf.edu", role = "ctb",
           comment = c("Testing", ORCID = "0000-0002-2635-1699"))
  )
Description: Runs language model agents in an existing 'R' session, where
    generated code can inspect and modify objects already in memory. The
    peter() function supports interactive chat and programmatic calls.
    Conversational models use tools and return session objects; typed
    decision models return logical, character or numeric vectors with
    associated model probabilities. Supports the 'Anthropic'
    <https://platform.claude.com/docs/en/api/overview>, 'OpenAI'
    <https://developers.openai.com/api/reference/overview> and 'Google Gemini'
    <https://ai.google.dev/gemini-api/docs> APIs, 'OpenAI'-compatible endpoints,
    local 'Ollama' <https://ollama.com> models, and the 'Claude Code' and
    'Codex' command line tools. Decision models include 'Jev', hosted by
    'TypeSafe AI' <https://docs.typesafe.ai/introduction>, and the local 'Clef'.
    Top-level agent calls and their executed code can be recorded in 'R'
    scripts, 'R Markdown' and 'Quarto' documents, or 'Jupyter' notebooks.
    Recorded 'R' scripts can be replayed without model calls when the required
    inputs and packages are available.
License: Apache License (== 2.0)
URL: https://broccolito.github.io/gptr/,
        https://github.com/Broccolito/gptr
BugReports: https://github.com/Broccolito/gptr/issues
Depends: R (>= 4.2.0)
Imports: cli (>= 3.6.2), curl (>= 6.0.0), graphics, grDevices, jsonlite
        (>= 1.8.8), methods, processx (>= 3.8.6), ps (>= 1.8.0), rlang
        (>= 1.1.0), stats, tools, utils, yaml (>= 2.3.0)
Suggests: bslib, chromote, codetools, data.table, DBI, duckdb, httpuv,
        keyring, knitr, later, magick, openssl, ragg, reticulate,
        rmarkdown, RSQLite, rstudioapi, shiny, stringi, testthat (>=
        3.2.0), vctrs, withr
Enhances: repr
VignetteBuilder: knitr, rmarkdown
Config/testthat/edition: 3
Copyright: file inst/COPYRIGHTS
Encoding: UTF-8
Language: en-US
NeedsCompilation: no
SystemRequirements: Optional: Ollama (>= 0.35.1) for native local
        decision models; other optional external programs: 'claude'
        (Claude Code) and 'codex' (Codex) for subscription providers,
        'quarto' for 'Quarto' documents, and a 'Chrome'-family browser
        for app screenshots.
Config/roxygen2/version: 8.1.1
Packaged: 2026-10-31 19:25:49 UTC; runner
Author: Wanjun Gu [aut, cre, cph] (ORCID:
    <https://orcid.org/0000-0002-7342-7000>),
  Tianlu Zhu [ctb] (UI/UX polishing and CI/CD),
  Gianmarco Bellucci [ctb] (Testing, ORCID:
    <https://orcid.org/0000-0002-2635-1699>)
Maintainer: Wanjun Gu <wanjun.gu@ucsf.edu>
Repository: CRAN
Date/Publication: 2026-11-01 03:40:08 UTC
