openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
mailinhphan/clientOptions

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

OpenAI.Responses/src/Custom/Tools/CodeInterpreterTool/CodeInterpreterToolContainerConfiguration.cs

26lines · modecode

1using Microsoft.TypeSpec.Generator.Customizations;
2using System;
3using System.Collections.Generic;
4using System.Linq;
5
6namespace OpenAI.Responses;
7
8/// <summary>
9/// Represents the configuration for a Code Interpreter container.
10/// </summary>
11[CodeGenType("CodeInterpreterContainerConfiguration")]
12public partial class CodeInterpreterToolContainerConfiguration
13{
14 /// <summary>
15 /// Creates a new instance of the <see cref="AutomaticCodeInterpreterToolContainerConfiguration"/> class.
16 /// </summary>
17 /// <param name="fileIds">The list of file IDs associated with the container.</param>
18 /// <returns>A new instance of the <see cref="AutomaticCodeInterpreterToolContainerConfiguration"/> class.</returns>
19 public static AutomaticCodeInterpreterToolContainerConfiguration CreateAutomaticContainerConfiguration(IEnumerable<string> fileIds = null)
20 {
21 return new AutomaticCodeInterpreterToolContainerConfiguration(
22 kind: InternalCodeInterpreterContainerConfigurationType.Auto,
23 patch: default,
24 fileIds: fileIds?.ToList());
25 }
26}