openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/customize-openairesponsescontext-attribute

Branches

Tags

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

Clone

HTTPS

Download ZIP

OpenAI/src/Custom/Assistants/Streaming/RunStepDetailsUpdateCodeInterpreterOutput.cs

21lines · modecode

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