openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Custom/Assistants/Streaming/RunStepDetailsUpdateCodeInterpreterOutput.cs
19lines · modeblame
9f9f2936Jose Arriaga Maldonado2 years ago | 1 | namespace OpenAI.Assistants; |
| 2 | | |
| 3 | [CodeGenModel("RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject")] | |
| 4 | public 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 | } |