openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.2.0-beta.2

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Custom/Assistants/Streaming/RunStepDetailsUpdateCodeInterpreterOutput.cs

22lines · modecode

1using System.Diagnostics.CodeAnalysis;
2
3namespace OpenAI.Assistants;
4
5[Experimental("OPENAI001")]
6[CodeGenModel("RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject")]
7public partial class RunStepUpdateCodeInterpreterOutput
8{
9 /// <inheritdoc cref="InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.Index"/>
10 public int OutputIndex => AsLogs?.Index ?? AsImage?.Index ?? 0;
11
12 /// <inheritdoc cref="InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.InternalLogs"/>
13 public string Logs => AsLogs?.InternalLogs;
14
15 /// <inheritdoc cref="InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage.FileId"/>
16 public string ImageFileId => AsImage?.Image?.FileId;
17
18 private InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject AsLogs
19 => this as InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject;
20 private InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObject AsImage
21 => this as InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObject;
22}
23