LLMR::reset(agent) delegates to the agent's own agent$reset() method, so
the two agree: both clear the agent's conversation memory, returning the
agent invisibly. Use it to reuse one configured agent across independent
trials without leaking state between them.
Usage
# S3 method for class 'Agent'
reset(x, ...)Arguments
- x
An Agent.
- ...
Unused.
Examples
if (FALSE) { # \dontrun{
a <- agent("Aria", LLMR::llm_config("groq", "openai/gpt-oss-20b"))
a$chat("Remember the number 7.")
LLMR::reset(a) # same as a$reset()
} # }