Skip to content

how to use Code Interpreter or Image Output in OpenAI Agents SDK #360

Closed as not planned
@tasif498

Description

@tasif498

Is there currently a way to use the Code Interpreter (Python execution) tool or return images (e.g. charts) in responses when using the OpenAI Agents SDK?
If not, I’d like to request one of the following:
Option 1 Code Interpreter Integration
Support for securely executing Python code (like in the Assistants API with the code interpreter tool) to enable dynamic data processing and chart generation.

Option 2 Image Output Support
If code execution isn't feasible, provide a way for agents to return image outputs (e.g. base64-encoded charts) in their responses. This would allow external tools to handle code, and the agent simply returns the result.

Use Case:
Building data analysis agents that can respond to user queries with summaries and visual charts (bar, pie, line, etc.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDKstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions