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 · modeblame

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