Skip to content

[FEATURE REQ] Add CreateCodeInterpreterTool to ResponseTool #679

@gaspardpetit

Description

@gaspardpetit

Describe the feature or improvement you are requesting

Hello ! Thank you for the 2.4 update, it adds many useful features.

I see CreateMcpTool has been added to ResponseTool. Would it be possible to also add a CreateCodeInterpreterTool helper ?

Presently, mine looks like this:

	public static ResponseTool CreateCodeInterpreterTool(string type = "auto", IDictionary<string, BinaryData> additionalBinaryDataProperties = null)

	{
		return new InternalCodeInterpreterTool(
			kind: InternalToolType.CodeInterpreter,
			additionalBinaryDataProperties: additionalBinaryDataProperties,
			container: new CodeInterpreterToolDefinition(kind: type, additionalBinaryDataProperties: null)
			);
	}

It refers to the InternalCodeInterpreterTool from the Assistant API - I imagine you'd want to pull it into the Response API.

In my tests, is sufficient to allow models like GPT-5 to generate and execute local scripts to perform more complex tasks.

Additional context

No response

Metadata

Metadata

Assignees

Labels

area: responsesThis item is related to Responsesfeature-requestCategory: A new feature or enhancement to an existing feature is being requested.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions