@@ -207,12 +207,14 @@ public struct FunctionResponsePart: Part {
207
207
@available ( iOS 15 . 0 , macOS 12 . 0 , macCatalyst 15 . 0 , tvOS 15 . 0 , watchOS 8 . 0 , * )
208
208
public struct ExecutableCodePart : Part {
209
209
/// The language of the code in an ``ExecutableCodePart``.
210
- public struct Language : Sendable , Equatable {
210
+ public struct Language : Sendable , Equatable , CustomStringConvertible {
211
211
let internalLanguage : ExecutableCode . Language
212
212
213
213
/// The Python programming language.
214
214
public static let python = ExecutableCodePart . Language ( ExecutableCode . Language ( kind: . python) )
215
215
216
+ public var description : String { internalLanguage. rawValue }
217
+
216
218
init ( _ language: ExecutableCode . Language ) {
217
219
internalLanguage = language
218
220
}
@@ -258,7 +260,7 @@ public struct ExecutableCodePart: Part {
258
260
@available ( iOS 15 . 0 , macOS 12 . 0 , macCatalyst 15 . 0 , tvOS 15 . 0 , watchOS 8 . 0 , * )
259
261
public struct CodeExecutionResultPart : Part {
260
262
/// The outcome of a code execution.
261
- public struct Outcome : Sendable , Equatable {
263
+ public struct Outcome : Sendable , Equatable , CustomStringConvertible {
262
264
let internalOutcome : CodeExecutionResult . Outcome
263
265
264
266
/// The code executed without errors.
@@ -272,7 +274,7 @@ public struct CodeExecutionResultPart: Part {
272
274
public static let deadlineExceeded =
273
275
CodeExecutionResultPart . Outcome ( CodeExecutionResult . Outcome ( kind: . deadlineExceeded) )
274
276
275
- public var rawValue : String { internalOutcome. rawValue }
277
+ public var description : String { internalOutcome. rawValue }
276
278
277
279
init ( _ outcome: CodeExecutionResult . Outcome ) {
278
280
internalOutcome = outcome
0 commit comments