openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
OpenAI.Responses/src/Custom/Tools/CodeInterpreterTool/CodeInterpreterToolContainerConfiguration.cs
26lines · modecode
| 1 | using Microsoft.TypeSpec.Generator.Customizations; |
| 2 | using System; |
| 3 | using System.Collections.Generic; |
| 4 | using System.Linq; |
| 5 | |
| 6 | namespace OpenAI.Responses; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// Represents the configuration for a Code Interpreter container. |
| 10 | /// </summary> |
| 11 | [CodeGenType("CodeInterpreterContainerConfiguration")] |
| 12 | public 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 | } |