Skip to content

Support for OpenAI's New Responses API #365

@jimbrig

Description

@jimbrig

Note

See OpenAI's Announcement (March 11, 2025)

OpenAI just released their new Responses API and Agents SDK today (March 11, 2025). Since ellmer has gradually become the de-facto standard for working with LLMs from R, I was wondering if there are plans to support these new capabilities?

What’s New

  • Responses API: Combines Chat Completions simplicity with tool-use capabilities
  • Built-in tools: Web search, file search, and computer use
  • Agents SDK: For orchestrating multi-agent workflows

This seems like a natural fit for ellmer’s existing architecture, especially since the package already has great support for tool registration and function calling.

A simple implementation might look like:

chat <- chat_openai(
  model = "gpt-4o",
  system_prompt = "You are a helpful assistant.",
  use_responses_api = TRUE,
  tools = c("web_search", "file_search")
)

OpenAI plans to sunset the Assistants API by mid-2026, so supporting the Responses API would future-proof ellmer integrations.

Is this something on the roadmap?
Happy to help test if needed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions