Skip to contents

One record per distinct use: a task in a phase, done with one tool. Repeated conversations for the same task belong to the same use; record them with ait_log_interaction().

Usage

ait_register_use(
  phase,
  task,
  tool,
  purpose,
  output_used = c("partial", "none", "substantial"),
  person = NULL,
  date = Sys.Date(),
  files = NULL,
  risks = NULL,
  notes = NULL,
  path = "."
)

Arguments

phase

Phase of the project: see ait_vocabulary("phases").

task

Short description of the task, such as "Summarise 40 abstracts for screening".

tool

Identifier returned by ait_tool().

purpose

Why AI was used for this task.

output_used

How much of the output was kept: "none", "partial" or "substantial" (see ait_vocabulary("output_used")).

person

Who used the tool: a name or an ORCID iD.

date

Date of the use.

files

Optional paths of project files that contain AI output.

risks

Optional character vector of risks noticed, such as "possible invented citations".

notes

Optional free-text notes.

path

Root folder of the project.

Value

The identifier of the use record.

Examples

project <- file.path(tempdir(), "use-example")
ait_init(project)
gpt <- ait_tool("ChatGPT", "OpenAI", model = "GPT-4o", path = project)
ait_register_use("literature_review", "Summarise abstracts for screening",
                 tool = gpt, purpose = "Speed up first-pass screening",
                 output_used = "partial", person = "A. Researcher",
                 date = "2026-03-02", path = project)
#> [1] "use-612c29d59a"