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

namespace OpenAI.Assistants;

[CodeGenModel("RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject")]
public partial class RunStepUpdateCodeInterpreterOutput
{
    /// <inheritdoc cref="InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.Index"/>
    public int OutputIndex => AsLogs?.Index ?? AsImage?.Index ?? 0;

    /// <inheritdoc cref="InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.InternalLogs"/>
    public string Logs => AsLogs?.Logs;

    /// <inheritdoc cref="InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage.FileId"/>
    public string ImageFileId => AsImage?.Image?.FileId;

    private InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject AsLogs
        => this as InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject;
    private InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObject AsImage
        => this as InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObject;
}