The Responses API is OpenAI's next-generation API that simplifies
multi-turn conversations (via previous_response_id), supports web search,
file search, and computer use as built-in tools, and provides a cleaner
interface than Chat Completions for complex agentic applications.
new()ResponsesClient$new(parent)
create()ResponsesClient$create(
model,
input,
instructions = NULL,
previous_response_id = NULL,
tools = NULL,
tool_choice = NULL,
parallel_tool_calls = NULL,
max_output_tokens = NULL,
max_completion_tokens = NULL,
temperature = NULL,
top_p = NULL,
truncation = NULL,
metadata = NULL,
reasoning = NULL,
service_tier = NULL,
prompt_cache_key = NULL,
prompt_cache_retention = NULL,
include = NULL,
store = NULL,
stream = NULL,
callback = NULL
)
retrieve()ResponsesClient$retrieve(response_id)
delete()ResponsesClient$delete(response_id)
cancel()ResponsesClient$cancel(response_id)
list_input_items()ResponsesClient$list_input_items(response_id, after = NULL, limit = NULL)
clone()The objects of this class are cloneable with this method.
ResponsesClient$clone(deep = FALSE)deepWhether to make a deep clone.
Client for the OpenAI Responses API — a new, unified API for generating
text responses, managing multi-turn conversations, and using built-in tools.
Access via client$responses.