openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.0.0-beta.1

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Custom/Assistants/Streaming/RunStepDetailsUpdateCodeInterpreterOutput.cs

19lines · modecode

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