openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Custom/Assistants/Streaming/RunStepDetailsUpdateCodeInterpreterOutput.cs
22lines · modecode
| 1 | using System.Diagnostics.CodeAnalysis; |
| 2 | |
| 3 | namespace OpenAI.Assistants; |
| 4 | |
| 5 | [Experimental("OPENAI001")] |
| 6 | [CodeGenModel("RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject")] |
| 7 | public 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 | |